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.
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024