felixos890 Posted February 19, 2018 Share Posted February 19, 2018 Hi I've created a new module and I need to override a CartController and Cart class, I want to override these file by my module but if I creat a file into "mymobule/override/controller/front/CartController.php' it doesn't work, but into the native override folder it does work very well! why? what's wrong? Link to comment Share on other sites More sharing options...
Daresh Posted February 19, 2018 Share Posted February 19, 2018 If you create an override in module's folder it will only work after it's merged into existing overrides in the main overrides folder. This usually happens during module's installation process. Link to comment Share on other sites More sharing options...
felixos890 Posted February 19, 2018 Author Share Posted February 19, 2018 oh! great, then whent the module has been installed it move the php file into native folder ? now I'll test it thank you!! Link to comment Share on other sites More sharing options...
felixos890 Posted February 21, 2018 Author Share Posted February 21, 2018 I've include my file for override into mymodule/override etc but when I'm install the module prestashop doesn't move the file into override native folder, why ? I'ts automatic action or I need to invoke any function ? 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