webdeveloper123 Posted August 4, 2017 Share Posted August 4, 2017 Hi, but is it possible that the new version of PrestaShop 1.7 is not visible in the DNI field (Tax Code)? Also putting in Italy that disk code is required ... If I make it compulsory when registering after filling in the address form, an internal server error is reported ... Someone had the same problem with the new version of PrestaShop ? Thank you in advance. Link to comment Share on other sites More sharing options...
Shellanza Posted December 4, 2019 Share Posted December 4, 2019 Wow, I see that so many people replied you.... Damn me that I didn't choose Magento. Anyway, same issue here. If I find something I will write here. Prestashop 1.7.5 here and still not working. Link to comment Share on other sites More sharing options...
marijn Posted April 14, 2020 Share Posted April 14, 2020 Up. I'm also on 1.7.5 and no DNI field showing here. Did you have any luck finding a solution @Shellanza> Link to comment Share on other sites More sharing options...
ferran.herrero Posted April 15, 2020 Share Posted April 15, 2020 Hi! You have active b2b mode? With this configuration, PS shows the vat number and dni fields to business. You can activate it in Preferences -> Customers Settings -> enable B2B. I have this configuration and can work, but it's possible your customers can register from front office, but in your back office your problem persist. This is because the "siret" field is a numeric type, and the DNI have one letter. If you write only numbers, PS works correctly. I have the same problem from back office, but I register (at the moment) the customers from front office... If you resolve @marijn @Shellanza @webdeveloper123, please tell me. Thanks! Link to comment Share on other sites More sharing options...
elementChaosu Posted May 1, 2021 Share Posted May 1, 2021 (edited) In PS 1.7.7 user address, fields for address form are provided by function getFormat($id_country) in classes/addressformat.php. It reads fields list from database, tab ps_address_format. There you can add dni to desired position in list, which is defined there for each country. Then customer can edit his dni in customer area. B2B option did not worked for me in this situation. If no country is in parameter of function, the default value can be found in tab ps_configuration PS_COUNTRY_DEFAULT. Edit: in backoffice this can be editted in Menu >International > Location > Countries - in detail of your country, there is an option to edit form fields ( : Edited May 1, 2021 by elementChaosu found user friendlier solution (see edit history) 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