p-d-s Posted January 9, 2018 Share Posted January 9, 2018 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! Link to comment Share on other sites More sharing options...
Rhobur Posted January 14, 2018 Share Posted January 14, 2018 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. Link to comment Share on other sites More sharing options...
p-d-s Posted January 14, 2018 Author Share Posted January 14, 2018 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? Link to comment Share on other sites More sharing options...
bellini13 Posted January 15, 2018 Share Posted January 15, 2018 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 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