Variation still clickable even if out of stock
-
Hi everyone,
I’m setting up an e-commerce site for my physical shoe store, and I’m having a bit of a headache with variable products and out-of-stock combinations.
Here’s my situation:
I have a pair of sport shoes that come in 3 colors – Lilla, Pink, and Beige – and they’re available in sizes from 36 to 41. Over time, in the physical shop, I’ve sold a lot of them, so now I only have certain sizes available in certain colors.So I created a variable product in WooCommerce, added two attributes (Color and Size), and generated all the variations. Then I enabled “Manage Stock” and set the actual quantity for each variation (including 0 when it’s sold out). I also enabled the setting in WooCommerce to “Hide out-of-stock items”.
Now the problem is: even if a specific combination (like 38 in Lilla) is out of stock, or even deleted from the variations list, it still shows up in the front-end as selectable. Sometimes it’s greyed out, sometimes not, but it still confuses the customer — they think it’s available or try to add it to the cart.
For example:
If I have size 38 only in Beige, and not in Lilla or Pink anymore, the 38 still appears when I select Lilla. That makes no sense, right?I tried everything I could think of:
- Set quantity to 0
- Deleted the variation
- Cleared cache
- Tried changing theme and disabling plugins
- Double-checked the WooCommerce settings
Still no luck.
At this point I’m seriously wondering: maybe it’s better if I don’t use variations at all?
Would it make more sense to just create three separate products, one for each color, and then use only sizes as variations inside each?Would love to hear your thoughts. How do you manage products like this when not all combinations exist anymore?
Thanks in advance!
The topic ‘Variation still clickable even if out of stock’ is closed to new replies.