Jump to content

DNI required but not activated


elmasgayu

Recommended Posts

Hello. 

Prestashop 1.7.7.2

I am having problems with the deactivation of the field for the DNI in shipments to Spain. 

As you can see in this image it is activated as mandatory in:

Customers > Addresses > Set required fields for this section.

2748dd75-263b-40a9-adf7-b323d4db3d78.png.c4a701b8aafa3924d79857b055cfbdf6.png

 

I deactivate the dni field as mandatory and it looks like this.

c26f7674-9a97-4be7-a0dd-961454d4a87f.png.d6f25eddea1983c739e1926eaa256516.png

A few days ago I created a new country to be able to separate shipments to the Canary Islands from shipments to the peninsula Spain. Due to customs issues it is mandatory to have the DNI of the recipient to be able to send the goods to them. To avoid having to ask for the DNI by mail, I separated the Canary Islands in a new shipping zone and created a country called Spain - Canary Islands to be able to ask for a DNI field as mandatory. 

Personalizar > Internacional > Ubicaciones geograficas > Países

2e4f70f1-d803-4862-99eb-b8219c6ccadb.png.d4dd3ec1ed8f613e47f379bb80636749.png

We also mark the field "Do you need a tax identification number" as not necessary within the country.

d4dc8490-cbab-4fb7-a25e-da0052d2d87d.thumb.png.b0355e5edd397d3d771471aba9ea90a5.png

 

After this creation Prestashop activated as mandatory the DNI again as shown in the first image for all customers regardless of whether they are from Spain peninsula, Canary Islands or any other country in Europe to which we make shipments.

 

After a lot of testing and revisions we were not able to make the DNI field not compulsory for all customers. 
We could detect that after disabling the DNI field as mandatory in the addresses when a customer registers in the shop and proceeds to fill in your shipping address Prestashop automatically reactivates the DNI field as mandatory for all and this is causing us many problems. 

ddac9ec5-8bf1-4f2f-8250-6eb33ade11af.thumb.png.50ae4fb987a69f332759b1044cc77487.png

Does anyone have the same problem or know how to fix this BUG? 

Thank you very much.

Link to comment
Share on other sites

  • 2 months 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...