fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

How to display “Sold out” if variation has no stock?

Eric Embacher

Before a variation is selected, no stock information is shown. When a variation is selected that has stock, the quantity in stock is shown (“ex. “4 is stock”). However when a variation is selected which has no stock, no information is shown. Therefore it’s ambiguous whether the product has stock available or not. How do I display some text, (ex. “Sold out”) when there is no stock available for a variation?

Hakik Zaman

Hi Eric,

Thanks for getting back to us.

Could you record me reproducing your issue using a tool like this? https://www.useloom.com
It helps me to quickly figure out the issue.

Hope to hear from you soon.

Thank you

Hakik Zaman

Hi Eric,

Can you please temporarily deactivate our Swatches plugin and check how it behaves without our plugin?

Hope to hear from you soon.

Thank You

Hakik Zaman

Hi Eric,

Deactivate the swatches and try the same product on the single product page.

Then check how it displays the stock message after selecting dropdown.

Our plugin just works the same as WooCommerce does. It just displays the stock on the archive.

Hope to hear from you soon.

Thank You

Eric Embacher

Without the plugin active, the same behaviour occurs on the single product template page. I guess this means the bug is in the theme. Thanks, I’ll inquire with the theme developer.