Jump to content

PS 8.1.6 Hide password field on checkout


Recommended Posts

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?

image.png

Link to comment
Share on other sites

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

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

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