2014-09-30 8 views
1

두 개의 동일한 확장자가 있지만 둘 다 다른 용도로 사용됩니다.2 개의 마젠타 색 확장자가 충돌합니다

확장의 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> 

을, 나는이 문제를 해결할 수있는 방법을 도와주세요.

+0

두 모듈의 가격이 어떻게 달라지는 지, 보험료 및 총액 계산 방법 등을 설명 할 수 있습니까? –

+0

http://excellencemagentoblog.com/magento-add-fee-discount-order-total 및이 확장의 다른 복사본을 만들었습니다.이 질문의 문제를 참조하십시오 .... http : //stackoverflow.com/questions/26100747/tax-calculation- is-wrong-in-magento –

+0

이 두 모듈이 모두 활성화되어있을 때 Grand Total 계산 오류가 있습니다. 구체적으로 Grand Total에 세금이 추가되지 않았습니다. –

답변

2

이것은 내가 직면 한 동일한 문제입니다. 현재 태그 앞에 하나의 을 추가하므로이 줄을 제거하십시오.

<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> 

희망의

이 당신에게

+0

정말 고마워 .. Vishal Sharma –

0

정렬 알고리즘을 도움이 될 것입니다 Magento에서 사용하는 것은 안정적이지 않으며 잘못된 결과를 초래할 수 있습니다. 이 패치를 사용할 수 있습니다 : https://stackoverflow.com/a/11954867/288568