php – 编辑Magento订单确认电子邮件

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了php – 编辑Magento订单确认电子邮件脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我希望编辑包含订单总计(发货,总计)的邮件块,但无法找到此代码的模板文件

我需要删除运费和总计行数,只显示小计行

我已通过系统>检查了模板跨国电子邮件
看了一大堆phtML文件,试图找到这个特定的实例(如果这会产生影响,将适用于已注册和未注册用户)

目前电子邮件的格式为:

[logo]
hello {name/guest}
thank you message,{email} {tel}
order id info and date
billing info / payment method
shipping info / shipping method

order details - assuming this is {{layout handle="sales_email_order_ITems" order=$order}}

thank you message

在订单详细信息行上它的表

每个订单项:item,sku,qty,subtotal

在所有项目都是小计后,然后下一行是发货,然后下一行是总计 – 它是我想要摆脱的那些行中的2,运输和小计或总计

解决方法

在sales.XMl布局中,有sales_email_order_items,它负责订单商品并包含

<block tyPE="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
            <action method="setLabelPRoperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
            <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
            <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
                <action method="setIsPlaneMode"><value>1</value></action>
            </block>
        </block>

尝试在order_totals中分配新模板而不是sales / order / totals.phtml,并修改新模板以仅显示总计.我没有测试,但这可以给你指路.

脚本宝典总结

以上是脚本宝典为你收集整理的php – 编辑Magento订单确认电子邮件全部内容,希望文章能够帮你解决php – 编辑Magento订单确认电子邮件所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。