Jump to content

Problems making 'adress1' not mandatory


Recommended Posts

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

I already did that, but it still tells me it's a required field

Adress.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

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...