Originally Posted by
DrByte
It's not a PayPal thing.
It's caused by this default which was added to prevent errors from being triggered when customers without an account attempt to go through checkout:
line 287 of orders.php class:
Code:
// set default tax calculation for not-logged-in visitors
$taxCountryId = $taxZoneId = -1;
Changing it from -1 to 0 would prevent the system from using the STORE_ZONE and STORE_COUNTRY as defaults, and instead give nothing back.
But I've no idea what other very bad side effects that could cause as well, everywhere in your store.
USE AT YOUR OWN RISK
Sorry to revive this zombie thread but it came up first in google...
So, just updated a store from 1.5.1 to 1.5.6
php 7.3
upgrade gone pretty smoothly thanks mostly to being strict not to edit core files and use the overides.
Luckily have a test server to do the upgrade on, so still able to keep original 1.5.1 store going until 1.5.6 one ready.
going through the checkout scenarios and came across this issue, where if customer uses the EC button, it wasn't including the VAT (UK store) in the total shown on paypal.
On the old store it stills works fine.
Looked at the orders class file, and see that (contrary to earlier Dr Byte postings) that at line 324 it now states:
Code:
// set default tax calculation for not-logged-in visitors
$taxCountryId = $taxZoneId = 0;
If i set this back to -1 as was said earlier, then now works fine...
Code:
// set default tax calculation for not-logged-in visitors
$taxCountryId = $taxZoneId = -1;
So is this a bug? Intentional?
Bookmarks