Jump to content

remove tax identification block


Recommended Posts

First, be sure no country requires that block (none of the ones you want to suppport, at least)

 

The open up order-opc-new-account (if you usde opc) and find

 

 

<p class="required text dni_invoice">

<label for="dni">{l s='Identification number'}</label>

<input type="text" class="text" name="dni_invoice" id="dni_invoice" value="{if isset($guestInformations) && $guestInformations.dni}{$guestInformations.dni}{/if}" />

<span class="form_info">{l s='DNI / NIF / NIE'}</span>

</p>

 

Add style="display:none" to that block, and do the same with the birthday. Use...addresses.tpl I believe, if you don't use opc

Link to comment
Share on other sites

Thank you for your reply. being new to prestashop I am unfamiliar with what OPC means.

 

I found this entry for the registration form in authentication.tpl. the tax id block looks like this

 

<fieldset class="account_creation dni">

<h3>{l s='Tax identification'}</h3>

 

<p class="required text">

<label for="dni">{l s='Identification number'}</label>

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

<span class="form_info">{l s='DNI / NIF / NIE'}</span>

</p>

</fieldset>

 

Can I just remove this> and is this the right file?

Link to comment
Share on other sites

Thank you for your reply. being new to prestashop I am unfamiliar with what OPC means.

 

I found this entry for the registration form in authentication.tpl. the tax id block looks like this

 

<fieldset class="account_creation dni">

<h3>{l s='Tax identification'}</h3>

 

<p class="required text">

<label for="dni">{l s='Identification number'}</label>

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

<span class="form_info">{l s='DNI / NIF / NIE'}</span>

</p>

</fieldset>

 

Can I just remove this> and is this the right file?

 

This was fixed in Prestashop so you must have an older 1.5 version.

The correct fix for this is actually done in themes/default/css/authentication.css add the lines below and all will be OK.

 

http://forge.prestashop.com/browse/PSCFV-6262

 

 

 

#account-creation_form .id_state, #account-creation_form .dni, #account-creation_form .postcode {

display: none;

}

Link to comment
Share on other sites

No for that you will need to comment out or delete these sections from the TPL file.

There are two areas in the TPL file that have the birthday, one for instant checkout and one for standard checkout.

To comment out the code do this <!-- code is here -->.

Link to comment
Share on other sites

  • 3 months later...

Hello,

 

I try to remove it as I delete the following

{l s='Identification number'}

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

{l s='DNI / NIF / NIE'}

I use the file

authentication.tp, which is in the folder themes.

 

 

What I have to do to remove the

Identification number?

Link to comment
Share on other sites

Hello,

 

I try to remove it as I delete the following

{l s='Identification number'}

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

{l s='DNI / NIF / NIE'}

I use the file

authentication.tp, which is in the folder themes.

 

 

What I have to do to remove the

Identification number?

 

 

Not sure what you want but please read post #5.

Edited by tdr170 (see edit history)
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...