Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joe-dempsey/a90fdc0fad9228d7ea8931eac62a1a81 to your computer and use it in GitHub Desktop.
Save joe-dempsey/a90fdc0fad9228d7ea8931eac62a1a81 to your computer and use it in GitHub Desktop.
shopify email variables based on shipping method title
<!-- variable (shipping title downcased) -->
{% capture shipping_title_downcased %}{{ shipping_method.title | downcase }}{% endcapture %}
<!-- logic -->
<!-- if the order shipping method title downcased contains the word collection -->
{% if shipping_title_downcased contains "collection" %}
<h1>You can collect your products from our stores 9-5 on weekdays</h1>
<!-- else (shipping method title doesn't contain the word collection) -->
{% else %}
<h1>Your order is on its way!</h1>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment