Blog

WooCommerce Variations Table: Order Many Variations at Once

WooCommerce variations table: three dropdown forms replaced by one variation grid with a single Add to cart

A café orders your ribbed vase in 3 versions: 6 Small in Chalk, 4 Small in Sand and 2 Medium in Sand. On a standard WooCommerce product page that means choosing a size, choosing a finish, typing a quantity and clicking Add to cart, then doing it all again for the next version. Three versions, three rounds. Six versions, six rounds.

The fix is a WooCommerce variations table: every variation of the product in one grid, each with its own quantity field, and one Add to cart button for all of them. WooCommerce can’t show one on its own, but it does have a little-known checkout link that adds several variations at once, and we tested that too.

Below: why WooCommerce works one variation at a time (checked in its code), what the built-in link can and can’t do, how the options compare, and how to set up a variation grid that keeps your quantity rules, wholesale prices and stock checks. Every test ran on WooCommerce 11.2.1 in our Larch Home demo store.

Why WooCommerce adds one variation per click

A variable product page in WooCommerce shows one dropdown per attribute (Size, Finish), one quantity box and one button. The dropdowns pick a single combination, such as Medium and Sand, and only then does the page show that variation’s price and stock.

WooCommerce variable product with Size and Finish dropdowns, one quantity field and one Add to cart button
WooCommerce’s own form: one combination, one quantity, one button.

That is not a theme limitation. When the button is clicked, the form sends WooCommerce exactly one variation ID and one quantity, and WooCommerce’s add to cart handler adds that one line to the cart. There is no field for a second variation, so the only way to order 3 combinations is 3 trips through the form.

For a shopper buying one T-shirt that is fine. It hurts in 3 situations:

  • Trade and wholesale buyers who order a spread of sizes or colors in one go and have to repeat the form for each line.
  • Products with many combinations, where a buyer can’t see which sizes are in stock or what each one costs without trying them one by one.
  • Team and event orders (uniforms, merchandise) where one person orders several sizes of the same item.

Can WooCommerce add multiple products to the cart without a plugin?

Partly. None of the ranking how-to guides we read mention it, but WooCommerce has a built-in sharable checkout link. You build a URL with product or variation IDs and quantities, and anyone who opens it gets those items in their cart. In our store, the 3 variations the café wants have the IDs 34, 35 and 37, so this link orders its 12 vases:

https://yourstore.com/checkout-link/?products=34:6,35:4,37:2

Each pair is ID:quantity, separated by commas. To find a variation’s ID, go to Products > All Products, edit the product, then open Product data > Variations: the #ID is next to each variation. You can add &coupon=CODE to apply a coupon too.

What happened when we opened it in the lab:

  • All 3 variations landed in the cart with the right quantities, and the browser went straight to the checkout page.
  • A tall vase that was already in the cart was gone. The link empties the cart first, and WooCommerce’s documentation says so.
  • With a quantity above the stock (20 of a variation with 12 left), that line was skipped with a “not enough stock (12 remaining)” message, and the other line was still added.

So the checkout link is a good tool for you: a reorder link in an email to a regular trade customer, or a ready-made order from a sales call. It doesn’t help a shopper on the product page, because the shopper doesn’t build the link and can’t see the IDs. The other no-code idea you will find, the ?add-to-cart= URL, adds only one variation per URL.

What about a code snippet? Showing a table of variations with quantity fields means a new form on the product page, a handler that adds every line, and the same checks WooCommerce runs for a single add to cart (stock, quantity rules, role prices). That’s plugin-sized work, not a short snippet, which is why even the snippet blogs answer this question with a list of plugins.

Your options compared

There are 5 practical ways to let someone order several variations. We tested 3 of them in the lab. The add to list extension and the other variation table plugins come from their own pages (and, for WPC Variations Table, its free code), not from our tests.

Comparison of WooCommerce dropdowns, the checkout link, an add to list extension and a variation grid for ordering several variations
  • WooCommerce’s dropdowns: fine when most orders are one or two items. Free, nothing to set up.
  • The checkout link: for orders you prepare for a customer. Free, built in, but it replaces their cart.
  • An add to list extension, such as Add Multiple Variations to Cart on WooCommerce.com: the buyer picks the combinations one by one, adds each to a list with “Add to List”, then adds the whole list with “Add All to Cart”. It was listed at $39 a year, after a 14-day free trial, when we checked. It saves the page reloads, not the picking.
  • Other variation table plugins, which fill most of page 1 for this search. WPC Variations Table is free on WordPress.org: it lists the variations with a quantity box each and, by default, an Add to cart button on every row; in its free version (3.8.8) the add to cart setting can also be “Yes, for all variations”, which shows one “Add all to cart” button. PVT, Product Variation Table is free with an Add to cart button per row; adding several variations at once is in its paid Pro version. On WooCommerce.com, Product Variations Table for WooCommerce by FmeAddons ($49 a year) has a bulk add to cart button. They suit stores that want a simple list of variations, often for free. We didn’t test them, so we can’t say whether every line goes through your min/max and role-price checks; try that with your own rules before you rely on it.
  • A variation grid: every combination on screen with its price, stock and quantity field, one button. Best when buyers regularly order several sizes or colors.

How to set up a WooCommerce variations table

We use our Quick Order Form & Variation Grid plugin here. It replaces the dropdowns on variable products with a grid in which every variation has its own quantity field, and adds everything to the cart with one click.

Quick Order Form & Variation Grid in 20 seconds.
  1. Install and activate the plugin, then go to WooCommerce > Settings > Quick order.
  2. Leave Variable products (1) ticked to show the grid on every variable product page. Untick it if you only want the grid on a few products.
  3. Leave Two options (2) ticked so products with two attributes, such as size and color, show as rows and columns.
  4. Under Columns (3), tick and drag what each row shows: image, options, SKU, description, price, stock, quantity and subtotal. Quantity is always on. Trade buyers usually want SKU and stock. The rows and columns layout uses only the image (beside each row), price, SKU and stock you ticked; description and subtotal show in list layouts only.
  5. Choose what Out of stock (4) variations do: show as sold out, or leave them out of the grid.
  6. Click Save changes and open one of your variable products.
Variation grid settings in WooCommerce: Variable products, Two options, Columns and Out of stock, numbered 1 to 4

To change a single product, open it and go to Product data > General > Variation grid. “Store setting” follows the choice above; “Show the grid” and “Show the dropdowns” override it for that product. That’s how you turn the grid on only for your trade lines, or keep the dropdowns on a product where buyers always take one. The plugin’s docs cover every setting.

Variation grid setting in the General tab of a WooCommerce variable product

What the buyer sees: size × finish as rows and columns

The vase has 2 attributes, so it shows as a matrix: sizes down the side, finishes across the top, and in each cell a quantity field with that variation’s own price and stock. We typed the café’s order, 6, 4 and 2, and the footer added it up as the numbers went in: 12 items, $376.00 (6 × $28 + 4 × $32 + 2 × $40).

WooCommerce variations table with sizes as rows and finishes as columns, quantities 6, 4 and 2 entered and a total of 12 items for $376
One click adds all 3 variations to the cart.

A few rules decide the layout, from the plugin’s code:

  • The matrix is used for products with exactly 2 attributes when the second one has 8 values or fewer. Everything else shows as a list, one row per variation.
  • A search box appears above grids with more than 10 rows, so a buyer can type “XL” or a color.
  • Thumbnails show only when variations have their own picture, so rows don’t repeat the main photo.
  • A grid shows the first 150 variations of a product and no more. The dropdowns are gone on that page, so on a product with more than 150 variations the rest can’t be ordered from it. Set such products to “Show the dropdowns” in their General tab, or split them into smaller products.

Here is the list layout on a planter with a single Size attribute, with a subtotal on each line:

Variation list for a planter with Size, Price, Stock, Quantity and Subtotal columns and 6 items for $180

To put a product’s grid on another page, such as a landing page for trade buyers, add the Variation grid block, or use the shortcode [qofg_variation_grid product=”123″] with a product ID or SKU.

Do quantity rules and wholesale prices still apply?

This is where a grid can go wrong: if it skips WooCommerce’s normal checks, buyers can order below your minimum or at the wrong price. The plugin sends every line through the same validation as a single add to cart, so we tested it with 2 other rules active on the vase:

Signed in as a wholesale customer, the grid showed the trade prices ($19.60 instead of $28.00 for Small Chalk), and each quantity field counted up in steps of 2 to a maximum of 10 (8 on Small Chalk, which had only 8 in stock). The same 6, 4 and 2 went into the cart as 3 lines at wholesale prices, each with its buying rules:

WooCommerce cart with 3 vase variations added from the grid at wholesale prices, each showing packs of 2 and max 10

Most wrong quantities never leave the page. The grid’s fields take the Min Max pack size and maximum: when we typed 14, the field changed itself to 10, and 12 on Small Chalk became 8, its stock. When we typed 3 in a packs-of-2 field and clicked Add to cart, the browser stopped the order before sending it (Chrome’s message: “The two nearest valid values are 2 and 4.”).

Then we tried to break it with items already in the cart, which the page can’t know about:

  • Over the stock. With 6 Small Chalk already in the cart and 8 in stock, we ordered 6 more plus 2 Large Chalk. The Large Chalk was added; the Small Chalk line was refused with WooCommerce’s own message (“we have 8 in stock and you already have 6 in your cart”).
  • Over the maximum. With 4 Small Sand in the cart, we added 8 more. The cart line stopped at 10, with a notice that its quantity had been changed to 10 to match how it is sold.
  • Quantity price tiers. Once that line reached 10 of the same variation, its price dropped from $22.40 to $20.80, the 35% wholesale tier. The other lines stayed at 30%, because the tier counts each variation on its own, not the total number of vases in the cart.

Lines that can be added are added, and each line that can’t shows why. If you haven’t set quantity limits yet, our guide to limiting purchase quantity per product covers the options, and quantity discounts pair well with a grid, because buyers see their quantities add up.

Which products keep the dropdowns

Some variable products can’t be ordered from a grid, and the plugin keeps WooCommerce’s dropdowns on them automatically:

  • Variations with “Any” for an attribute, such as “Any Size”. The buyer still has to choose a size, and a grid cell can’t ask that. We tested it: as soon as one variation of a hoodie was set to “Any Size”, its page went back to the dropdowns.
  • Products with a file upload field from Product Options & Add-ons. An upload belongs to one line, so it can’t apply to several variations at once. Other option fields do work: they show under the grid and apply to every variation added from it.
  • Products you set to “Show the dropdowns” in their General tab.

If you use “Any” variations to avoid creating every combination, give the products that need a grid real variations for each value. And if you want shoppers to order many different products from one page rather than the variations of one product, that’s a product list rather than a variations table: our Product Table plugin does that, and the quick order form in Quick Order Form & Variation Grid lets buyers search by SKU or paste a list.

FAQ

How do I add quantity fields to variations in WooCommerce?

WooCommerce has no setting for it: its form has one quantity field for the chosen variation. To give each variation its own quantity field, replace the dropdowns with a variation grid plugin. With Quick Order Form & Variation Grid, it’s on for all variable products as soon as the plugin is active.

Can customers add multiple products to the cart at once in WooCommerce?

In 2 cases without a plugin. A grouped product shows a quantity field for each simple product in the group, though products with options in a group only get a “Select options” button. And a checkout link (/checkout-link/?products=ID:quantity,ID:quantity) adds several products or variations, but it empties the cart first and goes straight to checkout.

Does a variations table work with the Cart and Checkout blocks?

Quick Order Form & Variation Grid is built for modern WooCommerce (Cart and Checkout blocks, HPOS). The cart screenshot above is the Cart block in our test store, showing the lines the grid added.

Can I show a variations table on a trade landing page?

Yes. In the block editor, add the Variation grid block and choose the product, or paste the shortcode [qofg_variation_grid product=”LH-RCV”] with the product’s ID or SKU. Add title=”no” to leave out the product name and image when the page already shows them. Buyers add to the cart from that page, and the result appears next to the grid.

Next step

Start with the question of who orders more than one variation. If it’s you preparing orders for regulars, WooCommerce’s free checkout link does the job today. If it’s your buyers, especially trade buyers ordering sizes and colors in bulk, a variation grid saves them a round trip per variation and keeps your stock checks, limits and prices in place.

You can try Quick Order Form & Variation Grid in the live demo on its product page before you buy. It comes with ongoing updates and support and a 14-day money-back guarantee, and if your products need something the grid doesn’t cover, open a support ticket.

14-day money-back guarantee

Try it on your store, risk-free

Every plugin includes ongoing updates and support. If it isn’t right for your store, get a full refund within 14 days, no questions asked.