-
-
Save basilkhan05/3c35252c6884381e6c76a654ad01febb to your computer and use it in GitHub Desktop.
Hide Simple bundles contents in Shopify notification emails
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
{% assign show_line_item = true %} | |
{% if line.line_item.discount_allocations %} | |
{% for discount_allocation in line.line_item.discount_allocations %} | |
{% if discount_allocation.discount_application.title contains "Simple Bundles:" %} | |
{% assign show_line_item = false %} | |
{% endif %} | |
{% endfor %} | |
{% endif %} | |
{% unless show_line_item %} | |
{% continue %} | |
{% endunless %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment