Magento Email Template Submission Date

I am trying to apply a German date format to Magento email. I can get the invoice date using

{{var invoice.created_at}}

but it gives me "2010-05-21 15:46:24". I would like to have 05.21.2010, but PHP does not work in templates.

I am completely new to Magento, so please be patient :-P

Greetz spanky

+3
source share
2 answers

I think you will have to override the method that sends the email to pass the date as a variable to the template (using the fifth argument to the sendTransactional () method).

+1
source

You can also call the function order.getCreatedAtStoreDate():

Order date: {{var order.getCreatedAtStoreDate()}}
0

Source: https://habr.com/ru/post/1751024/


All Articles