Add to cart buttons and quantities in Shopify product tables
Customers can add products to the cart directly from the table, without visiting each product page. Our Barn2 Product Table Shopify app lets you choose whether they add one product at a time, or tick several products and add them all at once.
Add to cart method
Edit the table and choose an 'Add to cart method' on the right of the page:
- Cart buttons (the default) - Each row has its own add to cart button. This works well when customers usually buy one or two products.
- Checkboxes - Each row has a checkbox instead. Customers tick the products to buy, choose the quantities, then click one button to add everything to the cart. This is ideal for quick order forms and wholesale orders.
- Cart buttons and checkboxes - Each row has both, so customers can add one product straight away or several products at once.
The table needs the Add to Cart column, which new tables include by default.
Quantity pickers
Tick 'Quantities' to show a quantity picker in each row. It's enabled by default. If you untick it, then customers add one of each product.
The Total column shows the price multiplied by the quantity, and updates as the customer changes the quantity. If you use Shopify B2B, logged-in B2B customers see their quantity rules (such as minimums and increments) in the quantity pickers, and their quantity price breaks in the price.
The button for adding several products
When a table uses checkboxes, a button appears for adding all the ticked products to the cart. It shows the number of products and the total, for example "Add 3 items for $45.00".
These options on the Settings page apply to all your tables:
- Multi add to cart location - Show the button above the table (the default), below it, or in both places.
- Display a link to select all products in the table header - This adds a link for ticking every product on the page at once. It's enabled by default.
What happens after adding to the cart?
The app updates your theme's cart, so the cart icon in your header shows the new items straight away. If your theme has a cart drawer, it might open automatically. Otherwise, a message confirms that the products were added, with a link to view the cart.
Customers stay on the same page and can carry on ordering from the table.
Products with several variants
The 'Variants' option controls how customers choose a variant before adding it to the cart. They can choose from dropdown lists, or you can list each variant on its own row.
Changing the button wording
To change the wording of the buttons and messages, such as "Add to cart" or "View cart", go to the Text & Translations page.