У меня есть два одинаковых расширения, но оба они используются для другой цели.конфликтующие два пурпурного расширения
расширение А 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>
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>
Оба противоречивые в общей стоимости, пожалуйста, помогите, как я могу решить эту проблему.
Можете ли вы объяснить сценарий относительно того, как цена влияет на оба модуля, как рассчитываются суммы страхования и сборов и т. Д. –
Я использую это расширение http://excellencemagentoblog.com/magento-add-fee-discount-order-total, и я сделал еще одну копию этого расширения, см. проблему в этом вопросе .... http: //stackoverflow.com/questions/26100747/tax-calculation- is-wrong-in-magento –
Когда оба этих модуля активны, у меня есть ошибки расчета Total Total, в частности, налог не добавляется в Grand Total, как и должно быть. –