Lem Posted May 25, 2011 Share Posted May 25, 2011 I have edited a couple of the controller classes so that I can remove the requirement for a phone number in customer registration. Long term, rather than commenting out code in the Controller classes each time I install PS, I would prefer to use an override. I understand their use to add functionality, but can you use them to restrict? Link to comment Share on other sites More sharing options...
gonandriy Posted May 25, 2011 Share Posted May 25, 2011 Probably you can override function, where comment or change unnecessary piece of code.Prestashop will use your class with your method, where functional will be disabled Link to comment Share on other sites More sharing options...
affect Posted May 25, 2011 Share Posted May 25, 2011 Yep gonandriy's suggestion looks fine, that's what I do myself if there's no other way (like changing property values for a class before executing the function in question, then changing back). IIRC PS did store requirements in an array somewhere. 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