Jump to content

Guest checkout only (no password and registration form needed)


DARKF3D3

Recommended Posts

I removed password block from checkout to force all customer placing orders has guest.
To do this I simply hide with css #checkout .field-password-policy.

The problem is that with password field hidden sometime prestashop create an account, instead of guest account.

Maybe because some browser autofill this field also if it's hidden?

It is safe to remove completelly this block from tpl file?

Link to comment
Share on other sites

16 hours ago, DARKF3D3 said:

I removed password block from checkout to force all customer placing orders has guest.
To do this I simply hide with css #checkout .field-password-policy.

The problem is that with password field hidden sometime prestashop create an account, instead of guest account.

Maybe because some browser autofill this field also if it's hidden?

It is safe to remove completelly this block from tpl file?

Hi,

This can be achieved by unsetting the password-related fields or setting the create_account parameter to 0 during the checkout process using custom module hook function `actionBeforeSubmitAccount`.

By this way, you can control the behavior of the checkout process without directly modifying the core files.

Thanks!

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