[Skip to main content](#vessel-content)

#   "VAT number not valid" message displayed twice (error + info) when editing addre

##

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Away](/forum/user/31479-lumiga)

Less More

- Posts: 646
- Thank you received: 26
-
-
-

28 minutes ago [\#100000888](#100000888) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *["VAT number not valid" message displayed twice (error + info) when editing addre](/forum/25-install-update/100000194-vat-number-not-valid-message-displayed-twice-error-info-when-editing-addre#100000888 "-- 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 &quot;The VAT number you entered is not valid&quot; is shown twice inside the address block:  1.  (red) 2.  (blue)  Both contain exactly the same text and are rendered inside #hikashop&#95;checkout&#95;address&#95;1&#95;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&#95;checkout&#95;address .hikashop&#95;messages.hikashop&#95;info { display: none; }  Could you have a look?  Thanks, Lumiga")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- 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. &lt;div id="hikashop_messages_error" class="hikashop_messages hikashop_error"&gt; (red)
2. &lt;div id="hikashop_messages_info" class="hikashop_messages hikashop_info"&gt; (blue)

[ ![hika4.jpg](/forum/attachment/100000268) ](/forum/attachment/100000268 "hika4.jpg")

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](https://hikashop.com/forum/customers/908530-block-registration-with-vat-number-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

---

Kind regards,
Lumiga

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzEwMDAwMDE5NC12YXQtbnVtYmVyLW5vdC12YWxpZC1tZXNzYWdlLWRpc3BsYXllZC10d2ljZS1lcnJvci1pbmZvLXdoZW4tZWRpdGluZy1hZGRyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
