Ben Line

Conditional loading of Shopify snippets

9/27/2019 • ☕️ 1 min read

Here’s an example to explain the concept that would be placed in product.liquid:

{% if product.handle contains “coffee-cup” %}
{% include “special-offer” %}
{% endif %}