lsykora Posted November 14, 2023 Share Posted November 14, 2023 Hello everyone, I have prestashop 1.7.8.10 and I want ppl to buy only with no register and disable all login, all registration etc. I did modify the file personal-information.tpl in themes/classic/templates/checkout/_partials/steps so now there is no option "login" when making new order. There is only option "order with no registration" -> thats great. But in here, there are 2 fields I need also remove. "Register (optional). And save time on your next order!" then field "Password" and field "Birth date". I need to remove these, because it could be confused for the customers and they could try to register. Website, where you try what I mean is here: https://eshop.skakumamb.cz/ Any1 could tell me, what/where I can modify, to get my result I described? Thanks for any help! Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted November 14, 2023 Share Posted November 14, 2023 didn't you find where the registration form is? Link to comment Share on other sites More sharing options...
lsykora Posted November 14, 2023 Author Share Posted November 14, 2023 I was trying to find it out, but since im quite a beginner in PHP and prestashop, I was happy I was able to do what I did.... So no, I didnt find it. Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted November 14, 2023 Share Posted November 14, 2023 (edited) The file is: "themes/classic/templates/customer/_partials/customer-form.tpl" (or your custom theme folder) but there is a loop going through the "formfields" which are defined somewhere and pushed in that template. You could go through them and identify their names and put {if} condition not to display them, something like (but you need to identify the key and name of the fields yourself): {foreach from=$formFields item="field"} {if $field.name ne "password" && $field.name ne "birthday"} {block "form_field"} {form_field field=$field} {/block} {/if} {/foreach} Edited November 14, 2023 by QuickUpdate.net (see edit history) Link to comment Share on other sites More sharing options...
lsykora Posted November 14, 2023 Author Share Posted November 14, 2023 Okey, I will try it. Thanks for the tip Link to comment Share on other sites More sharing options...
lsykora Posted November 15, 2023 Author Share Posted November 15, 2023 It works like a miracle. Thanks very much for the help. 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