field control taxcode or VAT in registration

  • Posts: 22
  • Thank you received: 0
10 years 6 months ago #153074

hello, I would like to know how I can check the syntactic correctness of the data that the user enters in the tax code or VAT.
is possible to insert some control over the number of characters?
thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
10 years 6 months ago #153086

Hi,

If you use the default "address_vat" custom field for that, you can just set the "VAT number check" option of the configuration to "Format check".

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 0
10 years 6 months ago #153198

Thanks Nicolas, but my problem is that I also sell to private users without VAT and I need their tax code to make the invoice.
in Italy the tax code is such as RSS BBR F839 69 C 48 A, how can I check the formal inclusion of this area? there is to change some files?
thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
10 years 6 months ago #153215

In that case, you would have to modify the file administrator/components/com_hikashop/helpers/vat.php in order to have also a regex for that type of tax code.

The following user(s) said Thank You: cfi

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 0
10 years 6 months ago #153368

thanks nicolas! I'll try to edit the file indicated vat.php inserting the rules of the Italian tax code.
But I wanted to ask because at the time of registration with the setting of VAT controlled according to your formal system is not blocked and reported error field ..?
Is there some setting is not set correctly?
I enclose the current settings of hikashop VAT
thank you very much!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
10 years 6 months ago #153421

That should block the registration if the format is not valid.
Maybe some kind of error ?

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 0
10 years 6 months ago #153793

hello nicolas, such as putting only the letters in the field of VAT registration freezes and will not continue ... the settings are set as per the attached images. should fail and block the other hand, how is it possible?
I have not edited the file, and I installed component hika business
thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
10 years 6 months ago #153860

Can you provide a link to the registration page so that we can see that ?

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 0
10 years 6 months ago #153955

ok here is the link cfiscuola.it/component/hikashop/user/form.html
at this time the settings are as shown and the VAT is Italian
I also tried to insert only letters but does not block .. what can be the problem?
thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
10 years 6 months ago #153977

Hi,

I see that you removed the "country" field from your address form. However, the system bases itself on the country of the user in order to know if the user VAT number should be checked or not (Only customers with their address in the European Union will have their VAT numbers checked).
So that's probably why it doesn't perform any check as the system believes that it is not needed.

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 0
10 years 6 months ago #154068

thank you! the problem was just that! Now I just have to change the code of the file vat.php field control to verify the Italian tax code of the customers who do not have a VAT, which is necessary for us to have to make a correct invoice. If you make an update in the coming months about this case, please let me still present
Thank you very much!

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
8 years 8 months ago #229669

Hello, I wanted to know if it was solved the problem of controlling even the tax code, I needed the user iseriva or a valid VAT number exists, or if one is not in possession could enter the tax code.

When I register a new user the system display this message,
Il numero IVA introdotto non è valido
Il numero IVA introdotto non è valido
Notice: Undefined index: tmpl in /web/htdocs/administrator/components/com_hikashop/helpers/vat.php on line 203

Last edit: 8 years 8 months ago by anth. Reason: problem

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
8 years 8 months ago #229693

Hi,

The VAT number control system works fine. We even use it on our website.
Regarding the notice message, it's not important. You can just turn off the "error reporting" setting of the Joomla configuration (it should be turned off anyway).

The following user(s) said Thank You: anth

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
8 years 8 months ago #230026

Hi Nicolas,
Thanks for your reply,
I hidden all error but the registration process not continue, show the message in attached image.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
8 years 8 months ago #230099

Hi,

Are you sure that the VAT number is valid ?
Please check it there:
ec.europa.eu/taxation_customs/vies/
That's the official registry for VAT numbers in Europe and HikaShop uses that database.

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
8 years 8 months ago #230145

with other VAT number work but show this

Errore nel caricamento del componente: COM_USERS, Componente non trovato

Last edit: 8 years 8 months ago by anth.

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
8 years 8 months ago #231380

Hi,

This error means that com_users has been removed on your website. Is that the case ? com_users is an important part of Joomla and is necessary so that HikaShop works properly.

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 0
7 years 9 months ago #259900

Hi, I've the same problem... but I can't to solve it... this is the domain concret.it. Can you help me please?

thanks a lot...

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
7 years 9 months ago #259906

Hi,

I did a test on your website and I was able to register with a valid tax number:
monosnap.com/file/qE1t5l9etUQzVQED2kZHWLeXwnhHzm
So it seems to be working as far as I can see.
What error message did you have ?
Did you check that the VAT number you're trying to use is valid?
ec.europa.eu/taxation_customs/vies/

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 0
7 years 9 months ago #259968

Hello, I need to submit not only the VAT number but also the tax code that here in Italy is alphanumeric ...

thank you,

Ricardo.

Please Log in or Create an account to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum