【问题标题】:How to add customer email to address templates in Magento 1.7.0.2如何在 Magento 1.7.0.2 中将客户电子邮件添加到地址模板
【发布时间】:2016-08-19 19:43:59
【问题描述】:

我想将客户电子邮件添加到发票和货件 pdf 中。一个好的解决方案是将其添加到地址模板。但我找不到正确的变量。完成此任务的最简单方法是什么。

像这样不起作用的例子会是完美的。

 {{depend email}}Email: {{var email}}{{/depend}}

我正在使用 Magento 1.7.0.2 和 Firegento Pdf。

【问题讨论】:

    标签: magento magento-1.7


    【解决方案1】:

    给客人

    {{var order.getBillingAddress().getEmail()}}
    

    对于会员

    {{var order.getCustomerEmail()}}
    

    在 magento 1.9 中测试

    【讨论】:

      【解决方案2】:

      只需将以下代码添加到您的自定义电子邮件模板中: 电子邮件:{{htmlescape var=$order.getCustomerEmail()}}

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-09-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-05-17
        • 2016-06-11
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多