I I had a problem where the tax was not being calculated once I logged in. Turns out my problem was this piece of code in functions_taxes.php:
PHP Code:
if (STORE_PRODUCT_TAX_BASIS == 'Store') {
if ($zone_id != STORE_ZONE) return 0;
}
Being in Ireland we do not have zones (there's counties but there would not be a different VAT rate per county). And I have the tax basis set to store. However, sometime in the past I had created a zone just called "Republic of Ireland" and set the Store Zone to that. I subsequently deleted it. This left my Store Zone reading "190" (the zone ID of the deleted record) with no way to clear it in the configuration. I ended up setting to 0 via SQL.
My suggested change to the code would be:
PHP Code:
if (STORE_PRODUCT_TAX_BASIS == 'Store' && STORE_ZONE!=0) {
if ($zone_id != STORE_ZONE) return 0;
}
And also if STORE_ZONE==Zone being deleted UPDATE SET STORE_ZONE=0
Bookmarks