开发者

Magento email template format date of invoice

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜