cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9.4 - Tax / VAT in Shopping Cart is Wrong/incorrect after upgrade

Magento 1.9.4 - Tax / VAT in Shopping Cart is Wrong/incorrect after upgrade

There have been reported that tax is not working properly after upgrade to Magento 1.9.4. There seems that tax is applied once more even if all the prices in the catalog is included tax allready. 

The solution is provided by @booby69 in another post. There seems to have been changes to the file : Code/Mage/tax/etc/config.xml  - Under you see the solution provided. As a general warning we do not reccomend to make changes to core files, but this could be a temprary solution getting things to work again when this is looked into by Magento. Hopefully @sherrie takes it to the right people.  

<sales>
           <quote>
               <totals>
                   <tax_subtotal>
                       <class>tax/sales_total_quote_subtotal</class>
                       <after>subtotal,nominal,shipping,freeshipping</after>
                       <before>tax,discount</before>
                   </tax_subtotal>

This piece of code seems to be the problem. Because of it the subtotal ($request->_data['package_value']) becomes TAX included in the Checkout Cart and in the Onepage Review step. Which makes any shipping methods calculation (like with Owebia Shipping for example) based on this subtotal wrong.

 

By overriding config.xml with the one from Magento 1.9.3.7, the problem disappears.

Here is the working code for us.

 

<sales>
           <quote>
               <totals>
                   <tax_subtotal>
                       <class>tax/sales_total_quote_subtotal</class>
                       <after>subtotal</after>
                       <before>tax,discount,msrp</before>
                   </tax_subtotal>

 

3 REPLIES 3

Re: Magento 1.9.4 - Tax / VAT in Shopping Cart is Wrong/incorrect after upgrade

I had similar problem, after update 1.9.4 version with php 7.2

Tax / VAT calculate add once more before grandtotal.

My store using include Tax, but subtotal without tax already include Tax,

so grand total shows double tax with it.

also shipping cart rule doesn't works too.

 

I checked this problem. so I updated Inchoo php7 extension.

even 1.9.4.0 version is already support php 7.2,

there are still problem with mcrypt module. so you'd better to use this extension

until fully support and bug fix. 

after it desperate, admin page payment method link shows empty page. (without php7 extension)

 

go to inchoo php7 extension >  etc/config.xml and change code.

 

        <!-- Fix for incorrect sorting in the calculation of the discount -->
        <sales>
            <quote>
                <totals>
                    <msrp>
                        <before>grand_total</before>
                    </msrp>                  
                    <shipping>
                        <after>subtotal,freeshipping,tax_subtotal,msrp</after>
                    </shipping>                    
                </totals>
            </quote>
        </sales>

to

        <!-- Fix for incorrect sorting in the calculation of the discount -->
        <sales>
            <quote>
                <totals>                
                    <shipping>
                        <after>subtotal,freeshipping,tax_subtotal</after>
                    </shipping>                    
                </totals>
            </quote>
        </sales>

 after I removed <msrp> part & in <shipping> "msrp", it works fine as it before.

 

it works 1.9.4 version with inchoo php7 extension v3.0.

Re: Magento 1.9.4 - Tax / VAT in Shopping Cart is Wrong/incorrect after upgrade

Same here, few days ago we upgraded our Magento from 1.9.4.1 to 1.9.4.2.

Orders in backend and frontend started to have double tax calculation. All products in Magento are tax included and in the orders another tax is applyed just before the grand total.

We tryed the solution showed here (flushing cache, etc...) but nothing change.

Our file is little different from what you posted:

        <sales>
            <quote>
                <totals>
                    <tax_subtotal>
                        <class>tax/sales_total_quote_subtotal</class>
                        <after>freeshipping</after>
                        <before>tax,discount</before>
                    </tax_subtotal>
                    <tax_shipping>
                        <class>tax/sales_total_quote_shipping</class>
                        <after>shipping,tax_subtotal</after>
                        <before>tax,discount</before>
                    </tax_shipping>
                    <tax>
                        <class>tax/sales_total_quote_tax</class>
                        <after>subtotal,shipping</after>
                        <before>grand_total</before>
                        <renderer>tax/checkout_tax</renderer>
                        <admin_renderer>adminhtml/sales_order_create_totals_tax</admin_renderer>
                    </tax>

Someone now other possible ways to solve this issue? Is something changable in the content of the file i posted?

Thanks in advance

Re: Magento 1.9.4 - Tax / VAT in Shopping Cart is Wrong/incorrect after upgrade

In der Datei:  app/code/core/Mage/Sales/etc/config.xml

Den Block:

<msrp>
               <class>sales/quote_address_total_msrp</class>
              <before>grand_total</before>
</msrp>

auskommentieren. Dann werden die Steuern wieder korrekt berechnet.

Dies ist nur ein temporärer Hotfix und die Ursache sollte genauer im Magento Core untersucht werden.