Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

shopify liquid if else

{% if product.available %}
<h2>Price: £99.99</h2>
{% else %}
<h2 class=“sold-out”>Sorry - sold out</h2>
{% endif %}
Source by www.datainfinities.com #
 
PREVIOUS NEXT
Tagged: #shopify #liquid
ADD COMMENT
Topic
Name
5+1 =