-- HikaShop version -- : 6.8.2
-- Joomla version -- : 6.2.1
-- PHP version -- : 8.4
-- Browser(s) name and version -- : Chrome 158.0
Hi,
When a customer edits (or creates) an address in the checkout and enters an invalid VAT number, the message "The VAT number you entered is not valid" is shown twice inside the address block:
1. <div id="hikashop_messages_error" class="hikashop_messages hikashop_error"> (red)
2. <div id="hikashop_messages_info" class="hikashop_messages hikashop_info"> (blue)
Both contain exactly the same text and are rendered inside #hikashop_checkout_address_1_1 after the AJAX call of window.checkout.submitAddress(). The address is (correctly) not saved.
Steps to reproduce:
1. Go to the checkout while logged in
2. Click the edit icon of the billing address
3. Enter an invalid VAT number (e.g. 23424) and click OK
4. Two identical messages appear: one error, one info
It looks like the VAT check (helpers/vat.php) enqueues the message as info, and the address save (classes/user.php / address) adds it again as error. I found a similar report in this topic:
hikashop.com/forum/customers/908530-bloc...umber-not-valid.html
Expected: only one (error) message.
For now we hide the info variant with CSS:
.hikashop_checkout_address .hikashop_messages.hikashop_info { display: none; }
Could you have a look?
Thanks,
Lumiga