Bug in Plugin Check tax for EU

15.02.2021 18:06
#1
opis-tech
Joomshopping forum user no avatar
Name: Frank
06.12.2018
Posts: 6
Quote
Bug in Plugin Check tax for EU

Hi,
if someone enters only spaces into the tax id field, the check passes, but the customer is treated as having a VAT ID.
The problem is the trim before checking if the tax id field is empty in check_tax_for_EU.php.
A possible fix looks like this:
(from line 14):
public function onBeforeSaveCheckoutStep2(&$adv_user) {
$taxNumber = strval($adv_user->tax_number);
if (strlen($taxNumber) <= 0) {
return NULL;
}
$taxNumber = trim($taxNumber);


Would be great if this could be implemented in a future version so that my own fix isn't reverted.

Thanks,
Aron

 
15.02.2021 18:30
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25930
Quote
Aw: Bug in Plugin Check tax for EU

Added in
Check tax for EU 1.5.4

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.