CIF in registration

  • Posts: 311
  • Thank you received: 8
  • Hikashop Business
10 months 1 week 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: 4747
  • Thank you received: 644
  • MODERATOR
10 months 1 week 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: 311
  • Thank you received: 8
  • Hikashop Business
10 months 1 week 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: 10 months 1 week ago by Philip.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 months 1 week 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.060 seconds
Powered by Kunena Forum