Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check template shopify

{% comment %}
	Try using the conditional statements below in your liquid file
{% endcomment %}

{% if template == "product" %}
	do something for products here
{% elsif template == "category" %}
	do something for categories here
{% else %}
	do something for everything else here
{% endif %}
 
PREVIOUS NEXT
Tagged: #check #template #shopify
ADD COMMENT
Topic
Name
2+1 =