Jump to content

Installing Overrides Via a Module


Recommended Posts

In building a module, I noticed that PrestaShop 1.5 has a InstallOverrides function built in. It seems pretty straightforward, as long as my file structure mimics the override structure in PrestaShop, the system attempts to overwrite the existing overrides with whatever I have in my module. However, I'm running into this error

 

Unable to install *module* Class CategoryControllerOriginal does not exist.

 

The obvious answer is that PrestaShop is trying to create a backup of the original override file but failing. Am I responsible for creating this backup with my module during the install, or am I missing something else?

 

You can find the module here

 

https://github.com/michaelkmartin/blockcategoryshortdesc

 

I've renamed the override directory to overrides to prevent PrestaShop from trying to install those files, for now.

 

I've tested this against PrestaShop 1.5.3, currently.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
×
×
  • Create New...