Jump to content

Recommended Posts

Hello,

 

I've tried to override the public install function to add an additional hook position.

To be more specific, I want to hook a module to displayProductButton.

Is there a how-to somewhere or maybe a small hint could help also.

Thanks!

Share this post


Link to post
Share on other sites

you need to create that hook function in your module's class, then either reset the module (you might loose its configuration, or simply add the module to that hook using the Positions.

Share this post


Link to post
Share on other sites

Thanks for the reply, but the issue, it's an 3rd party plugin (paypal).

So I don't want to change the core plugin files or else it get's overwritten after an update.

Is there no other solution?

I tried to override it by extending the class with an additional hook, which did not work.

Any one else has experience with extending an plugin class?

Share this post


Link to post
Share on other sites

There is a documentation link in the More menu above.  You can locate developer documentation there about how to create modules.  You can create your own module and manage your displayProductButton functionality there

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More