Jump to content

VAT occasionally not being added to orders


Recommended Posts

I have a problem with PrestaShop wherein sometimes VAT isn't being applied to orders. This isn't just a display bug either, but an error resulting in the customer not being charged VAT for that order.

 

This has happened at least 3 times now out of nearly 300 orders, and after checking the products, customer accounts and the orders themselves for each incident, I've found no common element that seems like it could be the cause.

 

Putting the same products in a cart of my own shows the VAT being added correctly. I've checked the tax rules as well and they seem to be as they should. The vast majority of orders also get VAT added correctly.

 

Does anyone know what might be causing this, or have any ideas about where to look for it?

Link to comment
Share on other sites

I managed to solve this after being pointed in the right direction by this thread: http://www.prestashop.com/forums/topic/300726-inc-tax-excl-tax-it-seems-to-work-random/

 

The European VAT number module was apparently being used despite being deactivated, because the VATNUMBER_MANAGEMENT variable in the configuration table was left at a value of 1 even after the module was disabled.

 

I think the root cause was that the module's way of storing and readings it own settings in the backoffice isn't yet compatible with a multistore setup, causing it to leave behind variables depending on which context it is installed, uninstalled, enabled or disabled from.

 

The module should probably explicitly check every time whether it is enabled for the current context, rather than rely on a custom variable that can differ from the activation state of the module.

Edited by SWN (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...