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,并修改新模板以仅显示总计.我没有测试,但这可以给你指路.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...