avilet Posted March 22, 2016 Share Posted March 22, 2016 Hi Prestashop 1.6. I need to make address and city field not required. I tried replacing <p class="required form-group"> <label for="dni">{l s='Address'} <sup>*</sup></label> to <div class="form-group is_customer_param"> <label for="address1_invoice">{l s='Address'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label> on authentication.tpl but this did not help. Any help is appreciated, i already tried old topics but did not find working solution. Link to comment Share on other sites More sharing options...
avilet Posted March 28, 2016 Author Share Posted March 28, 2016 I am sure someone knows the answer? Please help if you do I Searched old topics but nothing helps. Link to comment Share on other sites More sharing options...
avilet Posted December 4, 2016 Author Share Posted December 4, 2016 Took some time for dummie like me to figure it out, but if anyone else needs to do it, then in classes/address.php remove "'required' => true" on this line (or where neccessary): 'address1' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128), and then modify on theme folder files address.tpl and authentication.tpl (make address1 similar to address2). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now