babkeslt Posted September 2, 2017 Share Posted September 2, 2017 Hi, can you help me? How to remove home phone field in registration. I want to use mobile phone only. Next question, in Prestashop in registration form people see two fields with name and surname. How to do one fields with name and surname. Prestashop 1.6.0.11 Link to comment Share on other sites More sharing options...
bellini13 Posted September 3, 2017 Share Posted September 3, 2017 in your themes folder, you should have authentication.tpl edit that file and you should find something similar to this... and in a few places depending on 1 or 5 page checkout. you should be able to remove or comment out the Home phone <p class="form-group"> <label for="phone">{l s='Home phone'}</label> <input type="text" class="form-control" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" /> </p> <p class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group"> <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label> <input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" /> </p> as for the first and last name. You will need to create your own input field for a Full name that replaces the 2 first/last name fields. Then on the server side you would have to split them into first and last name, since the database has 2 fields. Or you would have to create a new column for full name. However this information is used in many different places in Prestashop, so tread carefully as you will break how Prestashop functions if you do not handle this in all places Link to comment Share on other sites More sharing options...
ChillMan Posted March 29, 2019 Share Posted March 29, 2019 (edited) Anybody had luck removing the Home Phone from the OPC, so only the Mobile Phone field is visible/required? Tried to comment out the Home phone code in order-opc-new-account.tpl ( PS 1.6.1.23) both places, but just results in error?! Edited March 29, 2019 by ChillMan (see edit history) 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