Gavinbr Posted January 22, 2018 Share Posted January 22, 2018 I need very remove the DNI field from the register, I already removed it in Location> Countries> but it does not work. Help me please! site: www.rosevie.com.br Dni is written as "do not fill" Link to comment Share on other sites More sharing options...
olkuznw Posted January 22, 2018 Share Posted January 22, 2018 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 More sharing options...
Gavinbr Posted January 23, 2018 Author Share Posted January 23, 2018 Good Morning! Thank you very much for the help. I made the change but nothing changed when registering. I do not need the DNI field and would like to remove it, can you help me? Link to comment Share on other sites More sharing options...
olkuznw Posted January 23, 2018 Share Posted January 23, 2018 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 More sharing options...
Gavinbr Posted January 24, 2018 Author Share Posted January 24, 2018 (edited) Coloque como solicitado e removido ou outro código, no entanto, ou campo deste registro ainda. Edited January 24, 2018 by Gavinbr (see edit history) Link to comment Share on other sites More sharing options...
olkuznw Posted January 24, 2018 Share Posted January 24, 2018 In default PS theme class .dni has style dislpay: none #account-creation_form .dni { display: none; } Link to comment Share on other sites More sharing options...
Gavinbr Posted January 24, 2018 Author Share Posted January 24, 2018 Sorry, but I did not understand. Link to comment Share on other sites More sharing options...
olkuznw Posted January 25, 2018 Share Posted January 25, 2018 Add next style #account-creation_form .dni { display: none; } This will hide you dni block. Link to comment Share on other sites More sharing options...
Gavinbr Posted January 31, 2018 Author Share Posted January 31, 2018 I could not remove the dni yet. Please help me. Give me the exact way to solve my problem? I just need this, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now