Jump to content

[SOLVED] Remove fields from the Registration Process


robkwal

Recommended Posts

Hi all...

I am looking to remove a couple of fields from the registration process, 1st being the "Receive special offers from our partners", the 2nd being The additional Info box, as they can provide addition info in the checkout process.

Also is it possible to have the months abbreviated to say Jan, Feb etc. How would i go about that?

Link to comment
Share on other sites

To remove "Receive special offers from our partners", you'll need to edit lines 137-140 of authentication.tpl and 101-104 of identity.tpl in your theme's directory (in PrestaShop v1.3.1) and {* comment out *} the following lines:



   <input type="checkbox" name="optin" id="optin" value="1" {if $smarty.post.optin == 1} checked="checked"{/if} />
{l s='Receive special offers from our partners'}



To remove the "Additional information" box, you'll need to {* comment out *} lines 194-197 of authentication.tpl and lines 84-87 of address.tpl in your theme's directory:



{l s='Additional information'}
   <textarea id="other" name="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{else}{$address->other|escape:'htmlall':'UTF-8'}{/if}</textarea>



To abbreviate the months, go to Tools > Translations > Front Office translations, click the USA flag, then scroll down to the "authentication" section and enter "Jan" in the "January" field, "Feb" in the "February" field, etc. Do the same in the "identity" section, then click "Update translations" at the bottom of the page.

Link to comment
Share on other sites

It depends on the type of code. In a PHP file, you can add // to the front of a line to comment it out or wrap /* */ around the code. In TPL files, you should wrap the code in {* *}. In CSS files, you should wrap the code in /* */.

Link to comment
Share on other sites

  • 8 months later...
To remove "Receive special offers from our partners", you'll need to edit lines 137-140 of authentication.tpl and 101-104 of identity.tpl in your theme's directory (in PrestaShop v1.3.1) and {* comment out *} the following lines:



   <input type="checkbox" name="optin" id="optin" value="1" {if $smarty.post.optin == 1} checked="checked"{/if} />
{l s='Receive special offers from our partners'}



To remove the "Additional information" box, you'll need to {* comment out *} lines 194-197 of authentication.tpl and lines 84-87 of address.tpl in your theme's directory:



{l s='Additional information'}
   <textarea id="other" name="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{else}{$address->other|escape:'htmlall':'UTF-8'}{/if}</textarea>





Same procedure in Prestashop 1.4.x.x?
I mean is it stille the files authentication.tpl and identity.tpl in your theme's directory you should edit?
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
Hello? Can anyone help.

How to remove the "Receive special offers from our partners" in PS1.4?


Hi there,

I just did this for my PS 1.4x installation using the one page checkout. You'll want to grab the order-opc-new-account.tpl in your theme's directory. Look for line 171 and comment out that block.

I took out the birthday and the newsletter stuff too.

Hope this helps!
Link to comment
Share on other sites

  • 3 months later...

The fix doesnt work for me...

 

I have commented out/removed/changed the following lines of code and the recieve special offers from our partners is still there!! it doesnt go away....

 

<p class="checkbox" >
   <input type="checkbox"name="optin" id="optin" value="1" {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked="checked"{/if} />
   <label for="optin">{l s='Receive special offers from our partners'}</label>
  </p>

 

in both authentication and indentity in my theme folder

 

What am i doing wrong am i forgetting something??

 

i have 1.3.2.3 if that matters

Link to comment
Share on other sites

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