Jump to content

Dont want checkout to ask DNI / NIF / NIE information


Recommended Posts

here is one example of changes on authentication.tpl
which is located at YourStoreRoot/themes/prestashop/authentication.tpl

before changes

    
{l s='Tax identification'}



{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'}
*




After changes

    
{l s='Tax identification'}



{l s='Identification number'}
           <input type="text" class="text" name="dni" id="dni" value="dummy" />
{l s='DNI / NIF / NIE'}
*




You will noticed that I set the style="display:none;" for fieldset tag
and set default to dummy.

Please note, in the same file, there are two locations, for different mode.
one is for normal 5 steps checkout and another one is for one page checkout.

Link to comment
Share on other sites

  • 3 years later...

here is one example of changes on authentication.tpl

which is located at YourStoreRoot/themes/prestashop/authentication.tpl

 

before changes

 

<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>            <sup>*</sup>        </p>    </fieldset>

After changes

 

<fieldset class="account_creation dni" style="display:none;">        <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="dummy" />            <span class="form_info">{l s='DNI / NIF / NIE'}</span>            <sup>*</sup>        </p>    </fieldset>

You will noticed that I set the style="display:none;" for fieldset tag

and set default to dummy.

 

Please note, in the same file, there are two locations, for different mode.

one is for normal 5 steps checkout and another one is for one page checkout.

 

Hi I am facing the same problem with new customer registration form. I searched as u said in YourStoreRoot/themes/prestashop/authentication.tpl    but I cant find this file in cpanel.   Please help

Link to comment
Share on other sites

the post is pretty old, it was for old version of PrestaShop.

for latest version of the prestashop, the default theme folder is different

 

YourStoreRoot/themes/YourStoreTheme/authentication.tpl

 

 

by default, it is "default-bootstrap" folder now

Link to comment
Share on other sites

the post is pretty old, it was for old version of PrestaShop.

for latest version of the prestashop, the default theme folder is different

 

YourStoreRoot/themes/YourStoreTheme/authentication.tpl

 

 

by default, it is "default-bootstrap" folder now

hello, thanks

but I am using Prestashop 1.4.8.3. 

Link to comment
Share on other sites

  • 1 year later...

Not working in v1.6.1.1

Tried it with v 1.6.1.1 and v 1.6.1.3 Localization --> Countries -- Edit. Whatever you do most things don't change.
In 1.6.1.3 I have no ID field and in the other one I do and can't remove ID field it.
States YES or No has no effect.

Only seems to effect the Invoice address and NOT instant checkout.

Solution: Edit themes/yourtheme/order-opc-new-account.tpl (For guest and new accounts)

Tip: first change it to .php so its easier to edit. After saving change it back to . tpl

Example (leave out the ID field) :
<!--    {if !$dniExist}
               <div class="required dni form-group">
                    <label for="dni">{l s='Identification number'} <sup>*</sup></label>
                    <input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
                    <span class="form_info">{l s='DNI / NIF / NIE'}</span>
                </div>
           {/if} -->

Remove it or place <!--  and -->

 

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

  • 4 months later...
  • 2 months later...
×
×
  • Create New...