CIF in registration

  • Posts: 268
  • Thank you received: 7
  • Hikashop Business
3 months 2 weeks ago #358176

Is it possible for Hikashop to detect if the NIF or CIF entered by the user is correct when registering?
Many clients put their last name in the NIF field and that is a problem when the invoice is made.

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

  • Posts: 4533
  • Thank you received: 612
  • MODERATOR
3 months 2 weeks ago #358182

Hello,

You can use regex to prevent the problem you describe directly in your address custom field.
Note that you can use some IA to generate a precise RegEx to fit your need and requirements.

But please note that this only checks the format of the submitted references, and not the authenticity or otherwise of these references.
Hope this will help you to prevent this issue.
Regards

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

  • Posts: 268
  • Thank you received: 7
  • Hikashop Business
3 months 2 weeks ago #358187

¿Alguna sugerencia de cómo poder hacerlo?

________________________________________
[Moderator :] This part of the forum is in English only, thanks for your attention.

Translation :
Any suggestions on how to do this?

Last edit: 3 months 2 weeks ago by Philip.

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

  • Posts: 81564
  • Thank you received: 13071
  • MODERATOR
3 months 2 weeks ago #358192

Hi,

Here is a RegEx example for NIF, CIF for Spain that I found looking on Google :
www.regextester.com/105984

([a-z]|[A-Z]|[0-9])[0-9]{7}([a-z]|[A-Z]|[0-9])
You can use such regex in the "Regular expression check" option of your custom field.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum