开发者

Magento email template format date of invoice

开发者 https://www.devze.com 2023-01-04 09:23 出处:网络
I\'m trying to apply the german format of a date to a Magento email. I can get the invoice date with {{var invoice.created_at}}

I'm trying to apply the german format of a date to a Magento email. I can get the invoice date with

{{var invoice.created_at}}

but that gives me "2010-05-21 15:46:24". I would like to have 21.05.2010 and PHP doesn't work in the templates.

I'm total开发者_运维技巧ly new to Magento so please be patient :-P

Greetz Spanky


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 of the sendTransactional() method).


You could also call the order.getCreatedAtStoreDate()-function:

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

精彩评论

暂无评论...
验证码 换一张
取 消