jeudi 2 juillet 2015

Date on confirmation email

I am trying to put the date of delivery on our confirmation email. Due to the different shipping options I would like the email to say 'Estimated Delivery Date' if they choose the Standard FREE Delivery and if choose the other options then the email to say 'Delivery Date'. Below is the code that I tried to use but it did not work

You've chosen: {{ shipping_method.title }}   
{%if shipping_method.title == Standard FREE Delivery%} Est Delivery Date {{ attributes.date }}  {% endif %} 
{% if shipping_method.title != Standard FREE Delivery %} Delivery Date {{ attributes.date }} {% endif %} 

Aucun commentaire:

Enregistrer un commentaire