Magento – Amazon Pay Extension and false tax calculation

In connection with the Amazon Pay Extension (M1) Creative Style fell on, that in the one and the other shop displaying and calculating the total sum / Gross total was wrong.

In the shop was deposited each, that stored in the catalog prices shown so the tax are already included. The tax rate is 19%.

In the order summary in your shopping cart yet everything is also displayed correctly. Taking the normal route via “Checkout” and uses a number of the local types, everything works fine. The gross amount is the total.

PictureHowever one chooses Amazon pay out as payment method and is used in the Amazon Pay Checkout, falls on, that the total sum is briefly displayed correctly. Then the sum of loads in connection with the transfer of the shipment- and billing addresses new and from the former total is the subtotal. These then comes the tax rate, would have been correct for the actual gross amount, and it is then the new total. If we exclude the order from now, but is still the correct sum to Amazon sent the wrong but processed in Magento. So everything not nice.

After some debugging and investigation it turned out, that this is related to the transition to PHP 7 seems to have originated. Even in the current version of the Amazon Pay Extension (2.0.26) is the problem still there. Abholfe managed here the extension “PHP7Totalsfix” of Hartmut.

After installation and clearing the cache, the total amount was then correct and did not change.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *