JoelWebsites Posted September 9, 2015 Share Posted September 9, 2015 I would like to override a class using a class but the thing is that prestashop does not recommend overrriding its classes and its methods? so is there any way to override a method in a class other that the normal overriding method? I would like my custom function to be triggered when a particular prestashop method is called? Can anyone please help me do it without using classes overrides? Thank you.Please advice. Link to comment Share on other sites More sharing options...
bellini13 Posted September 9, 2015 Share Posted September 9, 2015 does the function you want to override use hooks? Link to comment Share on other sites More sharing options...
JoelWebsites Posted September 10, 2015 Author Share Posted September 10, 2015 @bellini13 The function I am trying to override is the validateOrder function that is in the PaymentModule class ,I dont know if it uses hooks.Thanks Link to comment Share on other sites More sharing options...
JoelWebsites Posted September 10, 2015 Author Share Posted September 10, 2015 I think this may be the solution please see this thread.. https://www.prestashop.com/forums/topic/276894-how-to-use-action-hooks/ Link to comment Share on other sites More sharing options...
bellini13 Posted September 10, 2015 Share Posted September 10, 2015 well search the validateOrder function and look for the word hook 1 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