All things Shopify and commerce
Hi all,
I'm trying to customize order confirmation email.
I'm trying to fetch transaction gateway so that, depending on its value, the email should some text instead of another.
The problem is, it doesn't even work in the "else", where i try to show up the rendered object. Instead, it only shows the "abc".
{% case transaction.gateway_display_name %}
{% when "Bonifico" %}
xxx
{% when "Postagiro" %}
yyy
{% when "Bollettino c/c" %}
zzz
{% else %}
{{ transaction.gateway_display_name }} abc
{% endcase %}
Solved! Go to the solution
This is an accepted solution.
Is that code wrapped in an outer loop where you're iterating through all the transactions on the order? Because the order itself doesn't have a "transaction", it only has an array of all transactions that you have to loop through to get each individual transaction.
This is an accepted solution.
Is that code wrapped in an outer loop where you're iterating through all the transactions on the order? Because the order itself doesn't have a "transaction", it only has an array of all transactions that you have to loop through to get each individual transaction.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024