Jump to content

Change fields in the registration form


Recommended Posts

if you want to manage visibility of fields, go to localization > countries tab and click on edit button near each active country.

you can change there "address format" for each of the country.

 

if you want something other, let us know as Dioniz suggested

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

I have installed newest version of presta 1.6.08

Also I have added slovak language pack.

In localization/countires I have activated only Slovakia and there is edit possibility of registration fields for new customers.

We tried to change fields so many times but it has no affect on registration form, still remains same, nothing changed.

So I am wondering what am I doing wrong?

also date of birth is quite uneeded field and have to get rid of it.

Can you pls help me find out how can I change fields on my own? thanks a lot

if there is need any additional info, just ask for it and will provide. 

Link to comment
Share on other sites

  • 1 month later...

Hi, 

I have also looked everywhere for this i think :) so I borrow this thread if that is ok.
I would also like to remove this fields in the customer registration process:

*Title (Mr Mrs)
*Date of birth
On the address section i would like to remove these fields:

*Country
* Address title for future reference i think it says (I just see it in Swedish now).

Thanks in advance!

Edited by R1der (see edit history)
Link to comment
Share on other sites

You must edit both files: identity.tpl and authentication.tpl on your themes folder.

 

For example, to get rid of the date of birth selector:

 

Identity.tpl and authentication.tpl

 

Search for:

<div class="form-group">
                    <label>
                        {l s='Date of Birth'}
                    </label>
                    <div class="row">
                        <div class="col-xs-4">
                            <select name="days" id="days" class="form-control">
                                <option value="">-</option>
                                {foreach from=$days item=v}
                                    <option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v}  </option>
                                {/foreach}
                            </select>

                        </div>
                        <div class="col-xs-4">
                            <select id="months" name="months" class="form-control">
                                <option value="">-</option>
                                {foreach from=$months key=k item=v}
                                    <option value="{$k}" {if ($sl_month == $k)}selected="selected"{/if}>{l s=$v} </option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="col-xs-4">
                            <select id="years" name="years" class="form-control">
                                <option value="">-</option>
                                {foreach from=$years item=v}
                                    <option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v}  </option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
and comment those lines off, like this:
 
<!--<div class="form-group">
                    <label>
                        {l s='Date of Birth'}
                    </label>
                    <div class="row">
                        <div class="col-xs-4">
                            <select name="days" id="days" class="form-control">
                                <option value="">-</option>
                                {foreach from=$days item=v}
                                    <option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v}  </option>
                                {/foreach}
                            </select>

                        </div>
                        <div class="col-xs-4">
                            <select id="months" name="months" class="form-control">
                                <option value="">-</option>
                                {foreach from=$months key=k item=v}
                                    <option value="{$k}" {if ($sl_month == $k)}selected="selected"{/if}>{l s=$v} </option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="col-xs-4">
                            <select id="years" name="years" class="form-control">
                                <option value="">-</option>
                                {foreach from=$years item=v}
                                    <option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v}  </option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>-->

Hope this helps!

Edited by nutxlago (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
i newbie in prestashop . using prestashop 1.6.0.9 .i want edit registration form at localization->countires 

but does not work..:( 

I  want to place - mobile phone,adresss/postcode city/Country name and i want remove date birth . i hope can help me.:) 

 

vekia or anyone people help me

  • Like 1
Link to comment
Share on other sites

You must edit both files: identity.tpl and authentication.tpl on your themes folder.

 

For example, to get rid of the date of birth selector:

 

Identity.tpl and authentication.tpl

 

Search for:

<div class="form-group">
                    <label>
                        {l s='Date of Birth'}
                    </label>
                    <div class="row">
                        <div class="col-xs-4">
                            <select name="days" id="days" class="form-control">
                                <option value="">-</option>
                                {foreach from=$days item=v}
                                    <option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v}  </option>
                                {/foreach}
                            </select>

                        </div>
                        <div class="col-xs-4">
                            <select id="months" name="months" class="form-control">
                                <option value="">-</option>
                                {foreach from=$months key=k item=v}
                                    <option value="{$k}" {if ($sl_month == $k)}selected="selected"{/if}>{l s=$v} </option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="col-xs-4">
                            <select id="years" name="years" class="form-control">
                                <option value="">-</option>
                                {foreach from=$years item=v}
                                    <option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v}  </option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
and comment those lines off, like this:
 
<!--<div class="form-group">
                    <label>
                        {l s='Date of Birth'}
                    </label>
                    <div class="row">
                        <div class="col-xs-4">
                            <select name="days" id="days" class="form-control">
                                <option value="">-</option>
                                {foreach from=$days item=v}
                                    <option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v}  </option>
                                {/foreach}
                            </select>

                        </div>
                        <div class="col-xs-4">
                            <select id="months" name="months" class="form-control">
                                <option value="">-</option>
                                {foreach from=$months key=k item=v}
                                    <option value="{$k}" {if ($sl_month == $k)}selected="selected"{/if}>{l s=$v} </option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="col-xs-4">
                            <select id="years" name="years" class="form-control">
                                <option value="">-</option>
                                {foreach from=$years item=v}
                                    <option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v}  </option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>-->

Hope this helps!

Sorry for my late reply but I will try this soon, thanks alot for your help! I will get back with the results.

 

It works, thanks alot!

Edited by R1der (see edit history)
  • Like 3
Link to comment
Share on other sites

This seems to be able to get rid of some of the values. What about adding in new fields to the registration form? 

 

I saw there was a tutorial floating around but it seems to be only for the address lines...

 

I need to add in some new fields asking some questions about the customers business (like type of business)

Link to comment
Share on other sites

  • 2 months later...

Hello,

 

I have a problem with the months field for the registration form. Months are displayed in English but I need them in French. I checked everywhere, in every translation file and even in the Localization>Translation page on the backoffice, they are in French, but still displayed in English in my FO.

 

Is there something I am missing? Or is there a problem with the code? 

Can somebody help me?

I am working on Prestashop 1.6.0.9.

 

Thanks !

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...