Aerobius Posted May 18 Share Posted May 18 Hi, I've tried every which way of searching how to get rid of the optional password field on the checkout page but to no avail. So far the solutions I've found have not yielded results. Does anyone have any pointers how to achieve this? Link to comment Share on other sites More sharing options...
ps8modules Posted May 19 Share Posted May 19 Hi. Obviously the default Prestashop template is not used and each template (developer) names the elements as they need. Just right-click on the page, select the element to be inspected and then hide the box using either javascript or CSS. I'll give an example for the default Prestashop classic template (./themes/classic/assets/custom.js): $(document).ready(function() { if (typeof prestashop !== 'undefined' && prestashop.page.page_name == 'checkout') { $('.field-password-policy').hide(); } }); Link to comment Share on other sites More sharing options...
Prestashop Addict Posted May 19 Share Posted May 19 Or if you have skills in smarty / html, you can override template themes/yourtheme/customer/_partials/address-form.tpl Link to comment Share on other sites More sharing options...
Webkul Solutions Posted May 19 Share Posted May 19 To achieve your requirement, You need to replace the argument with the `$guest_allowed = false` in the CustomerForm class in the highlighted line: http://github.com/PrestaShop/PrestaShop/blob/8.2.0/classes/form/CustomerForm.php#L72 Link to comment Share on other sites More sharing options...
Aerobius Posted May 20 Author Share Posted May 20 On 5/19/2025 at 8:45 AM, ps8modules said: Hi. Obviously the default Prestashop template is not used and each template (developer) names the elements as they need. Just right-click on the page, select the element to be inspected and then hide the box using either javascript or CSS. I'll give an example for the default Prestashop classic template (./themes/classic/assets/custom.js): $(document).ready(function() { if (typeof prestashop !== 'undefined' && prestashop.page.page_name == 'checkout') { $('.field-password-policy').hide(); } }); Thank you a bunch! This did the trick for the theme I'm using as well. 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