Conditional Visibility
Inside the product wrapper you can add several attributes to show/hide parts of your design based on the current product state
Conditional Visibility
In Stock
To show up an element only when the selected variant is in stock you just have to use the following custom attribute:
conditionin-stockOut of Stock
To show up an element only when the selected variant is out of stock you just have to use the following custom attribute:
conditionout-of-stockLast in Stock
To show up an element only when the selected variant has only one item left in stock you just have to use the following custom attribute:
conditionlast-in-stockLow Stock
To show up an element only when the selected variant has only have less than 5 items in stock you just have to use the following custom attribute:
conditionlow-stockOn sales
To show up an element only when the selected variant is on sale you just have to use the following custom attribute:
conditionon-saleDisabled
To show up an element only when the selected variant cannot be purchased you just have to use the following custom attribute:
conditiondisabledSubscription
To show up an element only when the selected variant is a subscription you just have to use the following custom attribute:
conditionsubscriptionNot a subscription
To show up an element only when the selected variant is not a subscription you just have to use the following custom attribute:
conditionno-subscriptionPrice Varies
To show up an element only when the product has variable pricing (happens with variants that do have different prices) you just have to use the following custom attribute:
conditionvariable-priceFixed Price
To show up an element only when the product has fixed price (happens when variants do all have same price) you just have to use the following custom attribute:
conditionfixed-priceIs Variable
To show up an element only when the product is variable you just have to use the following custom attribute:
conditionis-variableIs Not Variable
To show up an element only when the product is not variable you just have to use the following custom attribute:
conditionis-not-variable