1. Home
  2. Knowledge Base
  3. WooCommerce Product Table
  4. Product Table Options

Add to Cart buttons

The WooCommerce Product Table plugin lists products in a table with an optional 'Buy' column. It comes with several options to control how Add to Cart buttons appear in the table.

You can choose buttons or checkboxes, show or hide the quantity selector and whether or not to reload the page using AJAX after adding products to the cart. Or if you prefer, you can remove the add to cart column completely and list your products without purchase options.

Can I automatically redirect customers to the cart?

Yes, WooCommerce itself has a setting to immediately redirect customers to the cart page after adding products to the cart. For example, this can be useful if you're using add to cart checkboxes, as customers can add multiple products and immediately be taken to the cart.

Activate this feature by going to WooCommerce → Settings → Products → Display and ticking the 'Redirect to the cart page after successful addition' box.

Can I skip the cart and direct customers straight to the checkout?

Yes, you can do this by using the free Redirection plugin to automatically take customers from the cart page to the checkout:

  1. In WooCommerce → Settings → Products → Display, tick the 'Redirect to the cart page after successful addition' box.
  2. Install the Redirection plugin and go to Tools → Redirection. Use this page to redirect the cart page URL to the checkout page on your site.

Whenever a customer adds a product to the cart, they will automatically be redirected to the checkout. This is an easy way to skip the cart in WooCommerce.

Can customers select products from multiple tables, and add them to the cart at once?

Yes, you can do this by disabling the AJAX add to cart option. That way, customers can use the add to cart checkboxes to tick products from more than one table on the same page, and use any of the 'Add Selected to Cart' buttons to add all the selected products to the cart together.

If AJAX add to cart is enabled, then unfortunately this isn't possible because then each table operates independently from the others on the page.

Can I add a button linking to the single product page?

Yes! There are 2 ways to do this:

  • If you're using variable products and haven't enabled variations in the product table, then the 'add to cart' column will change to 'Read More' and link to the single product page.
  • You can also add a button column instead of (or as well as) the 'add to cart' column. This adds a customizable button linking to the product detail page.

Can I hide the add to cart/read more buttons for out of stock products?

By default, the add to cart button text changes to 'Read more' for out of stock products, and links to the single product page. This is standard WooCommerce behavior and not specific to the WooCommerce Product Table plugin. This may not be appropriate if you're using the single product page.

The only way to change this is to write some custom code. This is outside of our plugin support, but WooCommerce have provided a code snippet to help with this. If you don't know how to use it then we recommend that you ask your developer or use our plugin customization service.

Can I add other types of buttons?

It's also possible to add other types of link or button to the product table. For example, you might want to add icons linking to downloadable files, or a button linking to an enquiry form.

You can achieve this by adding the buttons within a custom field and displaying it in the table. Please see our article about how to do this.

Can I remove the add to cart buttons from the table?

Yes, all of the columns in WooCommerce Product Table are optional. When you choose your columns, simply don't include an add to cart column. This will remove the add to cart buttons from the table.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.