Jump to content

Using an override to remove something from the original class?


Lem

Recommended Posts

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

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

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