Magento CE 1.8.1.0 grand total including tax is incorrect

我们两清 提交于 2020-01-03 03:17:09

问题


Hitting a brick wall here, for some reason Magento in the shopping cart is actually discounting the VAT from the total due. We are working with UK VAT (20%), and catalog prices include tax.

In this example the subtotal including tax comes to £9.50

So why on earth can the grand total including Tax come to £7.92? We haven't applied any discount to the item, so it's even more confusing. The grand total is worked out completely wrong for some reason.

Data displayed in cart:

Subtotal (inc VAT)  £9.50
Grand Total Excl. Tax   £6.34
Tax £1.58
Grand Total Incl. Tax   £7.92

Is this a confirmed bug in Magento CE 1.8.1.0 or is there a way to correct this?


回答1:


I had encountered the same issue, steps to solve it are:

  1. Go to this location : app/code/core/Mage/Sales/etc/config.xml
  2. Make a copy of it in app/code/local : app/code/local/Mage/Sales/etc/config.xml
  3. next on line number 1221 add msrp

    <shipping>
       <class>sales/quote_address_total_shipping</class>
       <after>subtotal,freeshipping,tax_subtotal,msrp</after>
       <before>grand_total</before>
    </shipping>
    
  4. Next add on line 1230 add

    <msrp>
       <class>sales/quote_address_total_msrp</class>
       <before>grand_total</before>
    </msrp>
    
    1. this should solve your issue. Thank you :)



回答2:


It seems that some configuration issue with catalog price rules and tax class setting.

Just checked tax class is working fine adding tax in grand total, without any issue.

If you have setup promotion or discount for user type in that and might be same class with same user type is added from tax class setting might be due this, system provide discount to that user type and showing that tax is added.

Please recheck setting once and let me know if still we are facing same issue.

Email: phptesting37@gmail.com



来源:https://stackoverflow.com/questions/22350179/magento-ce-1-8-1-0-grand-total-including-tax-is-incorrect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!