覆盖Magento小计并在管理发票电子邮件中添加新行
我想在Magento发票电子邮件的小计之后添加新行。有人能告诉我,发票电子邮件重写的核心文件是哪个吗覆盖Magento小计并在管理发票电子邮件中添加新行,magento,Magento,我想在Magento发票电子邮件的小计之后添加新行。有人能告诉我,发票电子邮件重写的核心文件是哪个吗 我已尝试在Magento Core files for Invoice Email new row add(发票电子邮件新行添加)中查找小计后的文件,但我不知道Magento Core文件夹中的正确路径和文件名。您正在查找总计块。请看一下这篇文章底部的链接,这里给出了一个关于如何扩展和添加您自己的选项的示例 基本上,您必须向magento指出,在某些类型中,例如报价单、发票。。。如果要添加一个“
我已尝试在Magento Core files for Invoice Email new row add(发票电子邮件新行添加)中查找小计后的文件,但我不知道Magento Core文件夹中的正确路径和文件名。您正在查找总计块。请看一下这篇文章底部的链接,这里给出了一个关于如何扩展和添加您自己的选项的示例 基本上,您必须向magento指出,在某些类型中,例如报价单、发票。。。如果要添加一个“总计”项目,可以给出示例中的位置:
<global>
<sales>
<quote>
<totals>
<yourcompany_yourmodule>
<class>company_module/path_to_class</class>
<after>subtotal</after>
<before>tax</before>
</yourcompany_yourmodule>
</totals>
</quote>
<order_invoice>
<totals>
<yourcompany_yourmodule>
<class>company_module/path_to_class</class>
<after>subtotal</after>
<before>tax</before>
</yourcompany_yourmodule>
</totals>
</order_invoice>
<order_creditmemo>
<totals>
<yourcompany_yourmodule>
<class>company_module/path_to_class</class>
<after>subtotal</after>
<before>tax</before>
</yourcompany_yourmodule>
</totals>
</order_creditmemo>
</sales>
</global>
公司模块/路径到类
我已重写发票电子邮件小计,并在小计后使用中的以下重写规则添加了ned行
<blocks>
<sales>
<rewrite>
<order_invoice_totals>Companyname_Modulename_Block_Sales_Order_Invoice_Totals</order_invoice_totals>
</rewrite>
</sales>
</blocks>
公司名称模块名称批量销售订单发票总额
并在下面的路径中重写小计
<?php
class Companyname_Modulename_Block_Sales_Order_Invoice_Totals extends Mage_Sales_Block_Order_Invoice_Totals
{
protected function _initTotals()
{
parent::_initTotals();
//Your Code Logic Here
return $this;
}
}
我也在寻找这样的选择,请指教。谢谢