Meromanche Posted March 31, 2010 Share Posted March 31, 2010 Hi,I would like to make the company field mendatory in the registration process. I changed the themes/prestashop/authentication.tplbut is is obviously not enough. What else do I need to change?Medro Link to comment Share on other sites More sharing options...
rocky Posted April 1, 2010 Share Posted April 1, 2010 After modify authentication.tpl and address.tpl in your theme's directory to add the red asterisk to the company field, you need to add 'company' to the $fieldsRequired array in classes/Address.php. Link to comment Share on other sites More sharing options...
Meromanche Posted April 1, 2010 Author Share Posted April 1, 2010 Rocky,I must have messed this one as I keep makming changes but the red asterix does not appear.Mero Link to comment Share on other sites More sharing options...
rocky Posted April 1, 2010 Share Posted April 1, 2010 You should change: to: and add the following before the closing </p>: * Link to comment Share on other sites More sharing options...
archproject Posted April 1, 2010 Share Posted April 1, 2010 Is this the same with making Home phone numbers and mobile phone numbers mandatory ? or is there a different file to change other than changing the belowIN THE THEMES Folderauthentication.tpladdress.tpland the classes/address.php?RegardsArchproject? Link to comment Share on other sites More sharing options...
rocky Posted April 1, 2010 Share Posted April 1, 2010 Yes, it is the same process for making any address field mandatory. Link to comment Share on other sites More sharing options...
archproject Posted April 1, 2010 Share Posted April 1, 2010 thanks alot I made my changes and it works.... hehehe .. Link to comment Share on other sites More sharing options...
kenkokafe Posted June 8, 2013 Share Posted June 8, 2013 You should change: to: and add the following before the closing </p>: [sup]*[/sup] why the fields are blank? Link to comment Share on other sites More sharing options...
vekia Posted June 8, 2013 Share Posted June 8, 2013 weirdy, i don't know why. what you want to achieve? and what PS version you've got? Link to comment Share on other sites More sharing options...
kenkokafe Posted June 8, 2013 Share Posted June 8, 2013 i was looking to make mandatory filds and get the * in red i have founded it now, but i came accross this post and just found it unusual. i made somenthing like: <sub> <colour = red> * <strong></sub> mind this is not exact code, but i cannot remember from heart. it works now and i have changed all in registration. xD thanks for the interest 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