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

#   Missing error message on not valid VAT

##

- **[braverman](/forum/user/30455-braverman "View braverman's Profile")**
- [![braverman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30455-braverman "View braverman's Profile") Topic Author
- [ Offline](/forum/user/30455-braverman)

Less More

- Posts: 25
- Thank you received: 2
-
-

2 years 3 months ago [\#361948](#361948) by [braverman](/forum/user/30455-braverman "View braverman's Profile")  *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#361948 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")* was created by *[braverman](/forum/user/30455-braverman "View braverman's Profile")*

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.4
-- PHP version -- : 8.2
-- Browser(s) name and version -- : any

Hi,

when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.

Thanks,

Jan

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

2 years 3 months ago -  2 years 3 months ago [\#361950](#361950) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#361950 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hello,

Please provide us your **Address custom field** configuration via a **screenshot** in order to allow us to try to reproduce your current issue.
You can active the **Joomla Debug** (in maximum level) in order to see if that provide any clues around your issue, and if yes provide a **screenshot** well to show us error message.
Regards

Last edit: 2 years 3 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

- **[braverman](/forum/user/30455-braverman "View braverman's Profile")**
- [![braverman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30455-braverman "View braverman's Profile") Topic Author
- [ Offline](/forum/user/30455-braverman)

Less More

- Posts: 25
- Thank you received: 2
-
-

2 years 2 months ago [\#362525](#362525) by [braverman](/forum/user/30455-braverman "View braverman's Profile")  Replied by *[braverman](/forum/user/30455-braverman "View braverman's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#362525 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hi,

thanks for the answer - it is the field address_vat - I am attaching the custom field details.

But I tried to find more details and found that response on saving the address is this:
Code:

&lt;div id="hikashop_messages_error" class="hikashop_messages hikashop_error"&gt; &lt;ul&gt; &lt;li&gt;The VAT number you entered is not valid&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript"&gt; javascript: history.go(-1); &lt;/script&gt; &lt;/head&gt; &lt;body&gt;&lt;/body&gt; &lt;/html&gt;

So it shows the error and then goes back so the error is gone. I found it in /administrator/com_hikashop/controllers/user.php - method saveaddress().

Is there some special reason for this behavior?

Thanks, Jan  [ ![HikaVATnumberfieldform.png](/forum/attachment/59588) ](/forum/attachment/59588 "...rfieldform.png")

- [ ![HikaVATnumberfieldform.png](/forum/attachment/59588) ](/forum/attachment/59588 "...rfieldform.png") [ ](/forum/attachment/59588?download=1 "...rfieldform.png")

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

2 years 2 months ago -  2 years 2 months ago [\#362527](#362527) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#362527 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hello,

Unfortunately this will not be enough to allow us to understand what is not working.
Can you complete it with these elements:
- An **Url link** to your backend (administrator)
- Backend user **references** (with maximum Acl)
- Your **VAT number** in order to be sure that we reproduce your issue.

**Note :** Use our **[ Contact us](https://www.hikashop.com/support/contact-us.html)** form to provide these elements, and don't forget to add **an Url link to this topic**.
Regards

Last edit: 2 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

- **[braverman](/forum/user/30455-braverman "View braverman's Profile")**
- [![braverman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30455-braverman "View braverman's Profile") Topic Author
- [ Offline](/forum/user/30455-braverman)

Less More

- Posts: 25
- Thank you received: 2
-
-

2 years 1 month ago [\#362973](#362973) by [braverman](/forum/user/30455-braverman "View braverman's Profile")  Replied by *[braverman](/forum/user/30455-braverman "View braverman's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#362973 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hi,

I don't think you need backend access - it is production system and so I cannot allow anyone to enter it as admin. But I can show you precisely what I meen.

- We use only VAT format check (Configuration - Main - VAT number check - Format check)
- Editing customer in backend - billing or shipping address, it does not matter
- I make some change to address (eg name or street) and at the same time I fill in the wrong VAT, that doesn't pass the format check (eg XXX)
- The process finishes without any visible error but the changes are not saved

The reason is that the user controller (/administrator/com_hikashop/controllers/user.php) in saveaddress method returns javascript "javascript: history.go(-1);" and so the error "The VAT number you entered is not valid" shows only for split of second and then disappears.

Similar behaviour is also when editing customer address on order. I submits without any visible error but does not save the changes.

So please just try to show an error when saving not correctly formatted VAT. This is not urgent just for some future realease.

Thanks, Jan

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

2 years 1 month ago [\#363012](#363012) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#363012 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hi,

Thank you for your feedback. I see what you mean.
We'll look at improving this.

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

- **[braverman](/forum/user/30455-braverman "View braverman's Profile")**
- [![braverman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30455-braverman "View braverman's Profile") Topic Author
- [ Offline](/forum/user/30455-braverman)

Less More

- Posts: 25
- Thank you received: 2
-
-

1 year 2 months ago [\#368257](#368257) by [braverman](/forum/user/30455-braverman "View braverman's Profile")  Replied by *[braverman](/forum/user/30455-braverman "View braverman's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#368257 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hi, are there any news on this? I tested on latest 6.1.1 and it seems the same

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

1 year 2 months ago [\#368261](#368261) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#368261 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hi,

This was added to HikaShop 5.1.1 almost 1 year ago with the changelog entry:

> We've improved the address saving in the user edit form of the HikaShop backend so that it properly display error messages when necessary

[ www.hikashop.com/support/documentation/5...ashop-changelog.html](https://www.hikashop.com/support/documentation/56-hikashop-changelog.html)
The code change removes the history.go(-1); in the file back/controllers/user.php
[ i.imgur.com/pqgPzKE.png](https://i.imgur.com/pqgPzKE.png)
I personally did this patch and tested it. After the change I was not able to reproduce the issue anymore and properly got an error message in the popup.
Could you please double check ?

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

- **[braverman](/forum/user/30455-braverman "View braverman's Profile")**
- [![braverman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30455-braverman "View braverman's Profile") Topic Author
- [ Offline](/forum/user/30455-braverman)

Less More

- Posts: 25
- Thank you received: 2
-
-

1 year 1 month ago [\#368557](#368557) by [braverman](/forum/user/30455-braverman "View braverman's Profile")  Replied by *[braverman](/forum/user/30455-braverman "View braverman's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#368557 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hi,

you are right, it is repaired on customer edit. But the same bug is on the order edit page when editing billing or shipping address. No error shown on incorrect VAT entry and not saving the other changed data without any message.

Thanks, Jan

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

1 year 1 month ago [\#368560](#368560) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Missing error message on not valid VAT](/forum/35-orders-management/908362-missing-error-message-on-not-valid-vat#368560 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.2 -- Browser(s) name and version -- : any  Hi,  when saving in backend the billing address with VAT filled and the check is not valid, Hika does not show any error and just cancels saving. We have only format VAT check enabled.  Thanks,  Jan")*

Hi,

Thanks for reporting this. I had missed your mention of that other problem in your previous message.
We'll be adding a patch for this with the next version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwODM2Mi1taXNzaW5nLWVycm9yLW1lc3NhZ2Utb24tbm90LXZhbGlkLXZhdD90bXBsPW1hcmtkb3du) 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.133 seconds

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

[](#top)
