How to remove override , when uninstalling the module in prestashop?

偶尔善良 提交于 2019-12-07 08:35:43

问题


Am overriding the classes and controllers using my module. But when uninstalling it didn't remove the override files in override folder which are created using this module. because of this am getting an error "Unable to install override: Class CartOverrideOriginal does not exist" when am trying to install second time. can anyone help me, how to remove those files when uninstalling the module itself and not manually.. Do I need to write any function to achieve this?


回答1:


Please note that modules installation/uninstallation should be not creating or deleting files from classes and override folders. These folders has important files and accidentally it can cause to delete important files. So if your module needs to override some classes or controllers, then don't place those files programmatically in override folders. Your module installation instruction should tell the user to copy those files manually and the same for uninstallation.

Hope this will help you.

Thank you.




回答2:


You should delete manually the file from override folder. Than you should delete the contents of the cache folder.

Now you can reinstall your module that does the override.



来源:https://stackoverflow.com/questions/18996528/how-to-remove-override-when-uninstalling-the-module-in-prestashop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!