Hello all,
I hope someone can help me. I want to add a “if” condition to my email. Let me explain.
Below you can see my email text, I want to show “Promotion” line only when someone have used a coupon code. If there is not copupon code, I want to hide it.
Also, I want to add the shipping cost after “Livraison :” but I don’t find this data on Preview data source.
Promotion (code : {{ event.extra.discount_codes.0.code|default:'' }}) : -{{ event.extra.discount_codes.0.amount|default:'' }}€
Sous-total : {{ event.extra.current_subtotal_price_set.shop_money.amount|default:'' }}€
Livraison :
Total : {{ event.extra.current_total_price_set.shop_money.amount|default:'' }}€
dont TVA 20% : {{ event.extra.current_total_tax_set.shop_money.amount|default:'' }}€
Vous avez choisi {{ event.ShippingRate|default:'' }} comme méthode de livraison.
Also, if I did something wrong don’t hesitate to give me tips
Your help will be very appreciated !
Thank you !