Last active
December 20, 2016 15:12
-
-
Save joe-dempsey/a90fdc0fad9228d7ea8931eac62a1a81 to your computer and use it in GitHub Desktop.
shopify email variables based on shipping method title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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