We use radio buttons for our variants and hide out of stock variants. If all variants are out of stock would like a inventory message that displays "This Product is Out of Stock".
I am using <mvt:if expr="l.settings:attributemachine:product:inv_leve l EQ 'out'">
<div><span class="inventory-message-button">This Product Is Currently Out of Stock</span></div></mvt:if>
However, if just one variant is in stock the message still displays, of course. Is there a way to to do this conditional only if all variants are out of stock?
I am using <mvt:if expr="l.settings:attributemachine:product:inv_leve l EQ 'out'">
<div><span class="inventory-message-button">This Product Is Currently Out of Stock</span></div></mvt:if>
However, if just one variant is in stock the message still displays, of course. Is there a way to to do this conditional only if all variants are out of stock?
Comment