Noir.cl Posted January 19, 2010 Share Posted January 19, 2010 Hey guys, I just installed prestashop and been having some troubles to adjust it to my needs. We're making a real estate site, so the adress field is not something our customers would feel comfortable filling in a mandatory way. I read this thread and was able to remove all the fields I wanted from the line 80 in Adress.php and the equivalent lines on the theme, but when I try to register a user I still get an error message saying that adress 1 is mandatory.Any ideas of what should I change to make it work? thanks in advance. Link to comment Share on other sites More sharing options...
rocky Posted January 20, 2010 Share Posted January 20, 2010 You need to remove 'address1' from the $fieldsRequired list on line 80 of classes/Address.php. Link to comment Share on other sites More sharing options...
Noir.cl Posted January 20, 2010 Author Share Posted January 20, 2010 I already did that, but it still tells me it's a required fieldAdress.php - Line 80 protected $fieldsRequired = array('id_country', 'lastname', 'firstname'); I also removed the * in address.tpl and authentication.tpl {l s='Address'} <input type="text" id="address1" name="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{else}{$address->address1|escape:'htmlall':'UTF-8'}{/if}" /> {l s='Address'} <input type="text" class="text" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" /> Any ideas of why it isn't working? Link to comment Share on other sites More sharing options...
rocky Posted January 20, 2010 Share Posted January 20, 2010 Perhaps you need to remove the following from $fieldsValidate in classes/Address.php: 'address1' => 'isAddress', Link to comment Share on other sites More sharing options...
Noir.cl Posted January 20, 2010 Author Share Posted January 20, 2010 Thanks a lot, it fixed my problem 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