this is probably an easy one, I need help with an if statement so my button only shows on specific product types.
<button id="myBtn">Size Guide</button> <div id="myModal" class="modal"> <div class="modal-content"> <span class="close">×</span> <img style="margin:auto; width:100%" class="modal-size-chart" src="https://cdn.shopify.com/s/files/1/0278/2842/0746/t/3/assets/{{ product.vendor }}.jpg"></img> </div> </div>
{% if product.type == "myType" %} <button id="myBtn">Size Guide</button> {% endif %}
More information on product.type here
product.type
More information on if here
1.4m articles
1.4m replys
5 comments
57.0k users