我有两个相同的扩展,但两个都是为了不同的目的而使用的。
扩展A Config.xml
<config>
<modules>
<Mageworks_Fee>
<version>0.1.5</version>
</Mageworks_Fee>
</modules>
<global>
<sales>
<quote>
<totals>
<fee>
<class>fee/sales_quote_address_total_fee</class>
<renderer>fee/checkout_totals_fee</renderer>
<admin_renderer>fee/adminhtml_sales_order_create_totals_fee</admin_renderer>
</fee>
</totals>
</quote>
<order_invoice>
<totals>
<fee>
<class>fee/sales_order_total_invoice_fee</class>
</fee>
</totals>
</order_invoice>
<order_creditmemo>
<totals>
<fee>
<class>fee/sales_order_total_creditmemo_fee</class>
</fee>
</totals>
</order_creditmemo>
</sales>
</global>
</config> 扩展B Config.xml
<config>
<modules>
<Mageworks_Insurance>
<version>0.1.5</version>
</Mageworks_Insurance>
</modules>
<global>
<sales>
<quote>
<totals>
<insurance>
<class>insurance/sales_quote_address_total_insurance</class>
<before>fee</before>
<renderer>insurance/checkout_totals_insurance</renderer>
<admin_renderer>insurance/adminhtml_sales_order_create_totals_insurance</admin_renderer>
</insurance>
</totals>
</quote>
<order_invoice>
<totals>
<insurance>
<class>insurance/sales_order_total_invoice_insurance</class>
</insurance>
</totals>
</order_invoice>
<order_creditmemo>
<totals>
<insurance>
<class>insurance/sales_order_total_creditmemo_insurance</class>
</insurance>
</totals>
</order_creditmemo>
</sales>
</global>
</config> 两者的总价格相互矛盾,请帮助我如何解决这个问题。
发布于 2014-09-30 11:39:25
这与我所面临的问题相同,目前您只在一个扩展中在标记之前添加,所以请删除这一行。
<before>fee</before>在扩展中,您必须在后面设置,在之前设置。
在扩展名中,Config.xml文件使用以下内容
<after>subtotal,discount,shipping</after>
<before>tax,grand_total</before> 在您的扩展名B Config.xml文件中使用以下
<after>fee</after>
<before>tax,grand_total</before> 希望这能帮到你
发布于 2014-10-01 11:38:10
Magento使用的排序算法不稳定,可能导致错误的结果。您可以使用此修补程序:https://stackoverflow.com/a/11954867/288568
https://stackoverflow.com/questions/26118357
复制相似问题