Jump to content

Remove home phone field and one name and surname in registration. Prestashop 1.6.0.11


Recommended Posts

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

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

  • 1 year later...

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