Skip to content

Instantly share code, notes, and snippets.

@basilkhan05
Created December 2, 2021 04:05
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 basilkhan05/b5a06db9cbdf0d75b8a1f069a1b69542 to your computer and use it in GitHub Desktop.
Save basilkhan05/b5a06db9cbdf0d75b8a1f069a1b69542 to your computer and use it in GitHub Desktop.
Hide Simple bundles contents in Shopify notification emails for Orders and Local pickup emails
{% assign show_line_item = true %}
{% if line.discount_allocations %}
{% for discount_allocation in line.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