Jump to content

< SOLVED> How to Remove Fields from Registration Form?


Recommended Posts

Go to ...themes/prestashop and edit authentication.tpl and change the following.

In 1.4.6.2 comment out lines 387-390 (removes company) or copy and paste the code below in the spot where you find the code below. (comment out is this <!-- (code) -->

 

<!-- <p class="text">

<label for="company">{l s='Company'}</label>

<input type="text" class="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

</p> -->

Then to remove the Additional info text box comment out lines 470-473 like below or copy and paste the code below where you find it.

 

<!-- <p class="textarea">

<label for="other">{l s='Additional information'}</label>

<textarea name="other" id="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea>

</p> -->

  • Like 2
Link to comment
Share on other sites

  • 1 month later...

Dear Friend,

 

Apologize for delay in response. Yes my issue resolved after making changes suggested by you. But its not working when I select guest checkout option. So can u tell me what changes I have to to remove company and additional information field while using guest checkout.

 

Thanks

Link to comment
Share on other sites

Looks like you need to comment out line 213 of authentication.tpl (same file you edited before)

 

will be just below delivery address

 

 

<h3>{l s='Delivery address'}</h3>

{foreach from=$dlv_all_fields item=field_name}

{if $field_name eq "company"}

<!-- <p class="text">

<label for="company">{l s='Company'}</label>

<input type="text" class="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

</p> -->

{elseif $field_name eq "vat_number"}

<div id="vat_number" style="display:none;">

 

 

However in my guest checkout there is no additional information area so if yours does have one just look below and follow labels as

they appear on your gust checkout ad you should be able to find it and comment ot out.

Link to comment
Share on other sites

  • 6 months later...
  • 3 years 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...