Jump to content

Remove DNI field


Gavinbr

Recommended Posts

Hi, i've checked you js code on register page and it has small issue. Code from this file https://rosevie.com.br/themes/theme935/js/tools/statesManagement.js doesn't check value of 'need_identification_number', it checks only that index exists. What you need is to update this line

if (typeof countries[i]['need_identification_number'] !== 'undefined')

to this

if (typeof countries[i]['need_identification_number'] !== 'undefined' && parseInt(countries[i]['need_identification_number']) > 0)

 

Link to comment
Share on other sites

  • razaro changed the title to Remove DNI field

Hi, I've checked your statesManagement.js and there is no fix for 'need_identification_number'. Also in your styles https://rosevie.com.br/themes/theme935/css/authentication.css you have this
.dni {
    display: block !important
}

In default Prestashop theme this element is invisible (display: none). Try to fix both this issues with js code and styles. 

Link to comment
Share on other sites

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...