DARKF3D3 Posted July 19, 2023 Share Posted July 19, 2023 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 More sharing options...
AddWeb Solution Posted July 20, 2023 Share Posted July 20, 2023 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 More sharing options...
DARKF3D3 Posted July 20, 2023 Author Share Posted July 20, 2023 @AddWeb Solution In that way the user it's still able to create an account from confirmation page? Link to comment Share on other sites More sharing options...
ps8modules Posted July 20, 2023 Share Posted July 20, 2023 body#order-confirmation #registration-form{display:none;} Link to comment Share on other sites More sharing options...
DARKF3D3 Posted July 20, 2023 Author Share Posted July 20, 2023 I don't want to hide the registration form on order confirmation page. Only the one on checkout. Link to comment Share on other sites More sharing options...
idnovate.com Posted July 26, 2023 Share Posted July 26, 2023 Try to remove this field by JS instead of hiding by CSS. Link to comment Share on other sites More sharing options...
stefanoqwe Posted October 7 Share Posted October 7 How you have solve? Thanks 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