Karakko Posted June 21, 2017 Share Posted June 21, 2017 (edited) Hey. I want to change a function within AdminController.php and I'm wondering what would be the best way to do that so that the future updates wouldn't overwrite my changes? Note that my changes are specific to my shop, so while contributing/opensourcing the changes is possible, no one will be able to use them. Thanks! P.S.: Is the process for overriding a function within a module the same? Edited June 21, 2017 by Karakko (see edit history) Link to comment Share on other sites More sharing options...
prosci8 Posted June 21, 2017 Share Posted June 21, 2017 As far as I can see the controller overrides in 1.6 and 1.7 are the same. The module overrides have changed. 1.7 Docs: controller override: http://developers.prestashop.com/module/04-DivingIntoPSCoreDevelopment/03-ControllersWithinPrestaShop.html?highlight=override module override: http://developers.prestashop.com/themes/modules/index.html#overriding-modules So because the controller override in 1.7 is similar you can use the 1.6 docs as a starting point: http://doc.prestashop.com/display/PS16/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingacontroller 1 Link to comment Share on other sites More sharing options...
Karakko Posted June 21, 2017 Author Share Posted June 21, 2017 Thanks! I didn't remember to check out the 1.6 documentation! 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