Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WooCommerce stock per attribute

I have a technical problem with the WooCommerce plugin that I can't seem to find an answer for. I got a variable product that has two different times for workshops. So an example to simplify:

Product: Event day ticket

Workshop 1: Red | Blue | Green

Workshop 2: Red | Blue | green

On workshop 1, every attribute needs to have 5 stock but on workshop 2 every attribute needs to have 10 stock.

I can make combination variables but if I do that, every combination has it's own stock. Not the attribute itself.

Any idea on how to work with issue?

I hope I explained it well enough.

like image 881
ForsakenCreator Avatar asked Feb 17 '17 10:02

ForsakenCreator


People also ask

How does WooCommerce show stock quantity?

There is an option in WooCommerce core to display how many product items you have in stock left. To enable this feature, go to WooCommerce → Settings → Products → Inventory and check the Enable stock management box in the Manage stock option.

How do I manage stock levels in WooCommerce?

You can do this by turning on Enable stock management in WooCommerce > Settings > Product > Inventory. Then for each product, you can turn on Enable stock management at the product level in the products' Edit pages and set the stock level.


1 Answers

I ran into something similar and the answer is a Variable Product with addons (one option is WooCommerce's own plugin @ https://woocommerce.com/products/product-add-ons/). You'd create Workshop as a variable attribute, then create product variations and set each Workshop's total number of tickets in the variations. Then create product addons for Red, Blue, and Green (you can set the cost of addons to any value including 0). That should give you the result you're seeking.

like image 200
cfx Avatar answered Sep 19 '22 17:09

cfx