Jump to content

[PS1.7] Override Private Class in a module


Recommended Posts

Hello,

How do I properly override core Customer.php class and it's

private function create(Customer $customer, $clearTextPassword)

I want to make the password to be automatically generated if empty. I am able to do that without any issues but I have to edit the core class.

I am sure this is not the right approach, is the same possible through the module or override?

I can create and then publish that module if someone gives me a tip on how this should be done the proper way.

Thanks

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