Jump to content

[ BUG ] - DNI as Required Field vs tax identification number not working as expected


HeyVoOn

Recommended Posts

Hello All,

 

I have setup on my shop DNI (Spanish ID) as a required field;

 

post-944125-0-14507600-1479983487_thumb.jpg

 

But for UK per example I don't need it to show (not required). If I turn off the "Do you need a tax identification number?";

 

post-944125-0-17392900-1479983612_thumb.jpg

 

And try to Update an existent address, when client clicks on SAVE it gets;

 

post-944125-0-75627200-1479983705_thumb.jpg

 

If I create a NEW address with the option above turned off. The field is not shown in the form but I cannot submit it. It get's the following error; (The field dni is required.) But its requirement is disable for the country so it shouldn't give error.

 

post-944125-0-86247700-1479984012_thumb.jpg

 

Any help solving this would be really appreciated. Thank you in advance.

 

 

 

NOTE: The correct behaviour would be that when you turn off the option "Do you need a tax identification number?" it would automatically set the DNI field NOT to be required. But it's not the case. The field requirements are set globally for all countries.

 

 

 

 

 

 

PrestaShop™ 1.6.0.14 

Edited by HeyVoOn (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...