PayPal Ignores Magento Delivery Charge
Picture the scene – all is going well, the site has launched and is happily taking orders just fine.. until.. one day, one order comes in strange and the packaging hasn’t been taken into account on the PayPal end. But it only happens once so you hope it was a glitch and move on.
Then it happens again, a few orders down the line.
You try to track the problem, but can’t recreate the error consistently.
Well… the problem and solution have been found! The error only seems to occur when a customer registers and uses PayPal standard – this causes PayPal to not take for the shipping, and so Magento sees the full amount hasn’t been taken for and doesn’t send an order confirmation. Very much less than ideal. We found the solution whilst browsing the Magento forum – you can see the original thread and solution as posted on the forum by clicking here.
The problem? Just five errant files:
- app/code/core/Mage/Paypal/Helper/Data.php
- app/code/core/Mage/Paypal/Model/Standard.php
- app/code/core/Mage/Paypal/Model/Api/Standard.php
- app/code/core/Mage/Paypal/Model/Api/Abstract.php
Now, you might think it would be as easy as just replacing those core files, but there is one important thing to remember: you should never edit core files. It’s a better practice to create local copies and one we recommend at ecommerce web design.
Step 1 – Open up your app/code folder, and create a new folder called “local”.
Step 2 – Duplicate the exact folder structure for the new files within the local folder, so the first file would be at app/code/local/Mage/PayPal/Model/Helper/Data.php
Step 3 – Upload your new local files. Bingo. Thanks for reading our latest Magento Blog!




