Jump to content

Remove the need to fill in* in the order - Prestashop 1.6


karlosman

Recommended Posts

Hello,

 

Please let me know if anyone knows how to remove the need to fill in some details in the order.

Specifically, if I want any billing information other than delivery I need to remove the need to fill in the name, surname and phone.

 

Thank you for your help

post-1330112-0-42258700-1493277907_thumb.png

Link to comment
Share on other sites

 

Hello,
 
Please let me know if anyone knows how to remove the need to fill in some details in the order.
Specifically, if I want any billing information other than delivery I need to remove the need to fill in the name, surname and phone.
 
Thank you for your help

 

 

classes/Address.php

'lastname' =>            array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
'firstname' =>            array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),

to

'lastname' =>            array('type' => self::TYPE_STRING, 'validate' => 'isName', 'size' => 32),
'firstname' =>            array('type' => self::TYPE_STRING, 'validate' => 'isName', 'size' => 32),

themes\yourtheme\address.tpl and authentication.tpl

 

from

<label for="firstname">{l s='First name'} <sup>*</sup></label>

to

<label for="firstname">{l s='First name'} </label>

and

 

 

 

from

<label for="lastname">{l s='Last name'} <sup>*</sup></label>

to

<label for="lastname">{l s='Last name'} </label>
Edited by c64girl (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...