Jump to content

override a module's php file


Recommended Posts

Hi Guys, I will apologize in advance because I am sure this has been answered a bunch of times already, although I could not find an answer.

 

I have modified a module to add a new hook. I need to make it so that the module can't be updated to delete this code, so what should I do?

 

 

From my understanding, I can't do overrides for .php files.

I tried to change file permissions on it to read only, but prestashop still managed to update it once.

 

What do you guys do in this situation? 

 

thanks

Link to comment
Share on other sites

It will be possible in a later version of PrestaShop. Probably not 1.6.0.10.

 

Pull request

https://github.com/PrestaShop/PrestaShop/pull/2133

 

Patch for pull request

https://github.com/PrestaShop/PrestaShop/commit/a21d2e9d0e7176bbfd005aac5825a6e1e6b718f0?diff=unified

 

Second patch

https://github.com/PrestaShop/PrestaShop/commit/2e5b54d138a47a411d73c97cf2f30be9e0dd8176

Edited by PhpMadman (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...