netdrag Posted November 18, 2016 Share Posted November 18, 2016 Hello everybody, someone can explain me please where override code is cached? I have a module that overrides the init method of productcontroller. I changed the code in modules/modulename/override/controllers/front/ProductController.php, deleted the class_index in the cache folder and also tried to delete the class in the override folder to force the recreation. But the file is always recreated with the unchanged code of the first version of the module. I also tried to uninstall the module, the override was not uninstalled and I got an error on reinstall. I changed the code in the zip folder, deleted the class in the core override folder and was able to reinstall it. But prestashop took again the unchanged code of the first version of the module. How can I update the override code? I am thankful for every advice. Link to comment Share on other sites More sharing options...
phinq1910 Posted November 18, 2016 Share Posted November 18, 2016 (edited) Please try to update in \override\controllers\front\ProductController.php then delete the class_index.php file. With file modules/modulename/override/controllers/front/ProductController.php: it will not compiler on there. It only copy to above path (\override\controllers\front) when you have new install . re-install your module Edited November 18, 2016 by phinq1910 (see edit history) Link to comment Share on other sites More sharing options...
netdrag Posted November 18, 2016 Author Share Posted November 18, 2016 Thank you for your reply but I tried that already.But the code in \override\controllers\front\ProductController.php is overwritten within seconds, during day also in fragments of seconds. It gets always updated with the old code . Link to comment Share on other sites More sharing options...
netdrag Posted November 21, 2016 Author Share Posted November 21, 2016 I tried it again, just to be shure. But my changes get always overwritten. Anyone got an idea why? 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