federico8 Posted November 15, 2012 Share Posted November 15, 2012 Hi, I need to ovveride a Prestashop core function, located in one of the classes, from a module. I tried to redeclare the core function in a hookHeader function but this did not solve my problem. How could I do in order to achieve this result? Thanks! Link to comment Share on other sites More sharing options...
JEEGuy Posted November 15, 2012 Share Posted November 15, 2012 Hi, i tried myself but could not get this done from within the module folder directly. I copied the according core class to override/classes, changed it there to have new functionality (but the same functions in it) and it was then used automatically. Link to comment Share on other sites More sharing options...
federico8 Posted November 15, 2012 Author Share Posted November 15, 2012 Thanks... so the only way to do it is by uploading a override in the override/classes folder? And what about if a user has already its ovveride/class/file.php override file in it? 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