【问题标题】:Magento Transaction Email Variables - Get PostcodeMagento 交易电子邮件变量 - 获取邮政编码
【发布时间】:2015-10-13 16:43:50
【问题描述】:

需要包含运输邮政编码才能使 DPD 跟踪链接工作,但找不到仅插入运输邮政编码/邮政编码的方法。

任何仅插入运输邮政编码的帮助都会非常有帮助,我假设是这样的:

{{var order.shippingPostcode}}

非常感谢

【问题讨论】:

  • 我现在已经找到了一个合适的解决方案。对于那些希望解决相同问题的人,我修改了 Configuration -> Customers -> Customer Configuration -> Address Templates 中的“Text One Line”地址模板,使其只有邮政编码,然后在交易电子邮件中使用:{{var order.getShippingAddress().format('oneline')}}

标签: magento transactional-email


【解决方案1】:

只需使用:

{{var order.getShippingAddress().getPostcode()}}

在您的交易模板中作为邮政编码的占位符。

【讨论】:

    猜你喜欢
    • 2013-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-14
    • 2013-11-21
    • 2014-05-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多