更新时间:2023-11-30 08:17:22
您必须像这样编辑电子邮件的布局:
You have to edit the layout of email like this :
<sales_email_order_items>
<reference name="order_totals"><action method="setTemplate"><template>sales/mytotals.phtml</template></action></reference>
</sales_email_order_items>
然后将重复的sales/totals.phtml复制到mytotals.phtml,并使用以下代码删除折扣代码:
Then duplicate sales/totals.phtml to mytotals.phtml and remove the discount code with something like :
if ($_code!='discount')
这是用于订单模板的,请查看sales.xml布局以查找有关其他电子邮件的信息
This is for the order template, look at the sales.xml layout to find information about other emails