Im having problems setting my email order confirmation.
I have to personalize it, depending on the payment method for example, if someone pays with Cash on Delivey is a different email that if someone pays with credit card.
I was able to “Bank Deposit” and the email comes out great, but on “Cash on delivery (COD)” it didn’t work, I dont understand why if both are in the same way.
This is how it looks:
{% for transaction in transactions %}
{% if transaction.gateway_display_name == “Bank Deposit.” %}
Puedes continuar con tu pago, depositando a la cuenta corriente del Banco XXXXXXX número: XXXXXXXX a nombre de XXXXXXX. Al finalizar por favor envíanos confirmación de pago al correo: XXXXXXXXXXXXXXXXXX.
{% endif %}
{% endfor %}
{% for transaction in transactions %}
{% if transaction.gateway_display_name == “Pago contra entrega” %}
Recibirás un correo electrónico cuando tu pedido sea enviado.
I am having the same issue. Did you find a solution since your post?
This is my code. My payment method is called “Überweisung / Vorkasse” and gets displayed in lowercase sometimes from shopify. Because of that I am using the downcase filter.
I do have the same issue. I am looking to solve the same for “Vorkasse”. Did you solve the problem in the meantime? How must the code look like in the order confirmation template?
For me @LitExtension 's solution didn’t work either. But I could solve it by using simply “gateway” instead of “transaction.gateway_display_name” or “transaction.gateway”. Like this: