Welele Posted September 9, 2022 Share Posted September 9, 2022 Hi Its possible to hide (not delete) thses fields. When customer is registered insert name & lastmane. Whe register his address, system autofill the fields. That is good, but have any option to hide them? We want theses fields, and keep like required, but its possible to hide and register with autofilled data when address is registered? Best regards Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 9, 2022 Share Posted September 9, 2022 Kindly add the below code in the "\themes\{Your-theme}\assets\js\theme.js" file if(prestashop.page.page_name == "address"){ document.querySelector('#field-lastname').parentElement.parentElement.style.display = "none"; document.querySelector('#field-firstname').parentElement.parentElement.style.display = "none"; } Link to comment Share on other sites More sharing options...
Welele Posted September 9, 2022 Author Share Posted September 9, 2022 (edited) Hi Knowband Plugins, thanks for you response. But after apply changes and clear cache I obtain this error: Sorry but no idea about this... Edited September 9, 2022 by Welele (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 12, 2022 Share Posted September 12, 2022 Can you please share the code executed in line no. 216 of \classes\form\CustomerPersister.php file. 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