Hello developers!
I’d like to add an additional error message to the users in case the VAT ID check fails.
I don’t want to modify all the “VAT_MESSAGE_*” language items but instead add an additional error item to the exceptions list.
Any hints where to start?
Hello Marco,
no this is more a feature enhancement.
Quite often we are facing the problem that our customers don’t know about their VAT-ID and its format.
As we have a B2B shop the VAT-ID field has to be filled correctly for our EU customers. And this prevents them from succesfully registering when the VAT ID is wrong.
Hello Marco,
yes, I already had a look there.
I know that the public method checkUid is called, which itself calls _checkOnline. In case of any error during this online check an oxInputException is thrown by _parseError.
Now where would I add another “throw exception” (or whatever else) to get an additional message to the user?