Edit Order confirmation on Shopify using if statement

Tan_S
Tourist
3 0 1

I've been editing the code of the order confirmation on my Shopify store, my target is that if a customer orders a product with "this" tag and the transaction type is "Bank Transfer" then it will show "this" text. I've been trying to edit it but the code doesn't reflect on the email notification of the user. Can anyone have an idea about this?

My Code looks like this:

{% assign found_pnmm = false %}

{% assign found_svmml = false %}

{% for line in subtotal_line_items %}
{% if product.tags contains 'PNMM' and transaction.gateway == 'Bank Transfer' %}
{% assign found_pnmm = true %}

{% elsif product.tags contains 'SVMML' and transaction.gateway == 'Bank Transfer' %}
{% assign found_svmml = true %}

{% endif %}
{% endfor %}

{% if found_pnmm %}
show this
{% elsif found_svmml %}
show that
{% endif %}
0 Likes
ClarenceHutchin
New Member
2 0 0
  1. Go to Settings -> Notifications.
  2. Click on the email you want to modify, lets do Order confirmation as an example.
  3. Copy/paste the HTML into your favorite code editor - you can also edit it here in the browser if you prefer but I recommend using your editor.

upsers

0 Likes
Tan_S
Tourist
3 0 1

Thank you for that, But it's not what I'm asking for. I was asking if what's wrong with the code because it was not triggered on the email received by the customer. 

0 Likes