Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
冲突的两个magento扩展_Magento_Magento 1.7_Magento 1.8_Magento 1.4_Magento 1.5 - Fatal编程技术网

冲突的两个magento扩展

冲突的两个magento扩展,magento,magento-1.7,magento-1.8,magento-1.4,magento-1.5,Magento,Magento 1.7,Magento 1.8,Magento 1.4,Magento 1.5,我有两个相同的扩展,但都用于不同的目的 扩展名A Config.xml <config> <modules> <Mageworks_Fee> <version>0.1.5</version> </Mageworks_Fee> </modules> <global> <sales> <quote> &

我有两个相同的扩展,但都用于不同的目的

扩展名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> 

0.1.5
费用/销售\报价\地址\总费用
费用/结帐总额费用
费用/管理HTML\销售\订单\创建\总计\费用
费用/销售\订单\总额\发票\费用
费用/销售\订单\总额\贷记备忘\费用
扩展名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>   

0.1.5
保险/销售\报价\地址\总额\保险
费用
保险/结帐总额保险
保险/管理HTML\u销售\u订单\u创建\u总计\u保险
保险/销售\订单\总额\发票\保险
保险/销售\订单\总额\信用备忘录\保险

两者在总价上存在冲突,请帮助我如何解决此问题。

这与我面临的问题相同,目前您只在一个扩展中添加了标签,因此请删除此行

<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> 
费用
税,总计

希望这能帮助您

Magento使用的排序算法不稳定,可能会导致错误的结果。您可以使用此修补程序:

您可以用一个场景来解释价格如何受到这两个模块的影响,如何计算保险和费用总额等。我正在使用此扩展,并且我制作了此扩展的另一个副本,请查看此问题中的问题……当这两个模块都处于活动状态时,我有总计计算错误,具体来说,税收没有按应有的方式添加到总计中。您确定只有在启用这些模块时,税收才会添加到总计中吗?此外,Magento(系统>配置>销售>税收)中有几个设置,我们可以使用这些设置将税收包括到sutotal中,在产品价格中包含税等。请在此处仔细检查您的税显示配置系统>配置>销售>税。非常感谢。。维沙尔·夏尔马