Todays Ask Jilt question is from Pete:
I’m selling products that can be sold individually, in a pack of 4, or in a pack of 12, which is done in the variables dropdown. The problem is for stock it only shows in the back end as 1 unit sold no matter what people choose rather than selling 4 units for the pack of 4, or selling 12 unit for the pack of 12.
Say I have 500 items in stock, can I set it so when the 4 pack or 12 pack is sold, it reduces from the single stock? So if I sell 2 single items, stock goes down to 498, then selling a pack of 4 reduces stock to 494 (not 497 like it does now)?
Sure thing Pete! To sell WooCommerce product packages like this, you’re looking for a Product Bundle. This will let us use a single product as the inventory source, and we can create a bundle for that to sell the packs.
To clarify Pete’s problem, here’s what happens now:
Product A has 3 variations: 1 unit, 4-pack, 12-pack. The stock for these is calculated separately. The stock for each 4-pack purchase deducts “1” from the 4-pack stock, not the overall unit stock.
To get an overall unit stock, and to have packages deduct from this stock, we need to bundle the items instead of selling them as separate products (even though variations are tied together by a parent product, they’re still unique products / SKUs).
Here are the steps we need to take to set up these products.
First we need to create the product by which our inventory will be measured. For the sake of this question, this will be our single unit / item product. I’m going to sell these as light bulbs for demonstration.
This will be a simple product without any bells and whistles really — just set the price for a unit of one, and be sure to track all stock for the item here.
This will be how we sell our individual product, and we’ll bundle this to sell it in packs of 4 or 12. I’ll make this product page fancier in a bit, but one product down, two to go!
Now that I have my single product done, I’ll create two bundle products — one for the 4-pack, and one for the 12-pack.
Since you only care about the stock on the individual item, you do not need to manage stock for the bundle. You only need to manage stock here if you need to track bundle stock separately from the item stock.
Let’s set the product type to “Product bundle”, and then set the price of the entire bundle for the product.
Now add your single product under the “Bundled Products” tab. When doing so, you’ll set the min quantity = maximum quantity = your quantity for the bundle (4 or 12 in this case).
That’s all we need for now! I’ll have a bundled product that’s tied to 4 of my individual light bulb product.
Once you do the same thing for a 12-pack, you’re done! You have 3 WooCommerce product packages that are sold individually for different prices, but all deducting from the same inventory / SKU.
I’m going to take this just a bit further to cross-promote bundles. This way if someone finds my single product, they’re aware that there are other purchasing options.
I’m going to add the thumbnails for my 2 bundles on my individually-sold lightbulb to promote these as purchasing options.
Now my product page will provide all 3 purchasing options for my visitors so they can choose the quantity that fits their needs.
Once a bundle is in the cart, customers will see that they’re paying for the bundle, but it’s made up of 4 (or 12) individual bulbs.
Once purchased, the quantity in the bundle will deduct inventory from your main or individually-sold product.
That’s it, Pete! Hope that points you in the right direction.
If you wanted to take this further to show all bundle choices on a page, you could look to use Product Bundles alongside of Composite Products, as shown in this tutorial. This would give you a way to show all bundles like a variation if desired on a single page.