冲突的两个magento扩展 [英] conflicting two magento extension
本文介绍了冲突的两个magento扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个相同的延伸但两者都使用不同的-不同的目的.
I have two same extension but both are using for a different-different purpose.
扩展A的Config.xml
Extension 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
Extension 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>
两者是矛盾的总价格,请帮助我如何解决这个问题.
Both are conflicting in total price , Please help how can i solve this issue.
推荐答案
这是我面对,目前正在添加的前强>标记只在一个延伸,以便删除此行相同的问题.
This is the same issue which i faced ,Currently you are adding before tag only in one extension so remove this line.
<before>fee</before>
你必须设置的后强>和前强>在两个延伸的标记.
you have to set the after and before tag in both of the extension.
在扩展A Config.xml文件使用这
In Extension A Config.xml file use this
<after>subtotal,discount,shipping</after>
<before>tax,grand_total</before>
和在扩展区B Config.xml文件使用这
and in your Extension B Config.xml file use this
<after>fee</after>
<before>tax,grand_total</before>
希望这对您有帮助
这篇关于冲突的两个magento扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文