开发者

Magento - how to add custom variables to new order E-mail?

I need to add custom v开发者_JS百科ariable to new order E-mail.

This variables are custom customer attributes.

Thanks in advance!


Like any other variable that you are using you can ask variables from your object so if you do in php

<?php echo $customerObject->getMyCustomVariable();?>

you would do in template

{{var customerObject.getMyCustomVariable()}}

And as in php side you have to be sure that this attribute exists in your object and is included in collection

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜