I have multiple products which feature a single attribute of ‘count’ with 3 options causing 3 variations. Think of each product as a specific flavor vitamin electrolyte drink powder, available in a 10 count, 30 count or 50 count. Each of these variations by count gets a unique description, a price that suits the quantity and is either in stock or not. Whenever the count is ‘0’ the description, price & availability lines disappear.
I want all three of those lines to remain visible with the only modification being ‘out of stock’ displayed when quantity is ‘0’.
Image of Current in and out of stock vs desired out of stock.
current vs desired
I appreciate the help.
I keep seeing options for adding ‘out of stock’ to variations listed in dropdowns, but nothing specifically addressing this goal.
I’m hoping there will be a fairly straight-forward solution that can be added to functions.php I can add to my active child theme.
Kyle Hart is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.