Help with email order confirmation

Solved
LaseMakers
Shopify Partner
49 0 21

Hi,

I need help.

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.

{% endif %}
{% endfor %}

I will really appreciate your help.

Thank you!!!

Carolina

 

AdamSmith12
Pathfinder
71 5 8

can you please give link of your store to check the valuer of the payment method and I can help you with this issues if you want

If helpful then please Like and ✔️ Accept Solution.
Do you need custom changes on store ? please send me a personal message and we can discuss.
Email: contact@salbimy.app
LaseMakers
Shopify Partner
49 0 21

Hi @AdamSmith12 

Thank you, here is the link and password.

https://gracegarcia-design.com/

Password: hebrug

Thanks for your help.

Carolina 

 

0 Likes
LitExtension
Shopify Partner
1221 155 216

This is an accepted solution.

Hi @LaseMakers

You can try my solution.

Please change transaction.gateway_display_name == "Pago contra entrega" to transaction.gateway_display_name contains "Pago contra entrega"

Please let me know if you need further support after changing that. Hope this helps! 

LitExtension - Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
LaseMakers
Shopify Partner
49 0 21

Hi @LitExtension 

Thank you so much you save my page, all it needed was to add "contains", the weird thing is that with others pages it worked well how I had it.

Best regards. 

 

Carolina 

0 Likes
LitExtension
Shopify Partner
1221 155 216

Hi @LaseMakers

It's our pleasure when helping you with your issue and getting accepted as a solution.

If you need further support, just let me know and we will support you dedicatedly.

Have a great day!

LitExtension - Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
0 Likes
Livom
New Member
3 0 0

Facing the same problem, but the contains solution doesn't work on our end.

 

{% if transaction.gateway_display_name contains "Vorauskasse" %}
                <td class="customer-info__item">
                  <h4>Bankdaten für Vorauskasse</h4>
                  <p>livom möbel gmbh<br/>Nordstrasse 13<br/>8580 Amriswil</p>
  <p>IBAN: CH73 0078 4297 4200 4200 1<br/>BIC/Swift: KBTGCH22<br/>Thurgauer Kantonalbank</p>
{% else %}<p>tralala</p>  
                </td>
                {% endif %}
 
 
 
 
0 Likes