Prestashop – override function in existing prestashop module?
I would like to change an existing PrestaShop module without copying it and creating a new one. I know that it is possible to override .tpl files in PrestaShop, but is it possible to do the same thing with PHP classes? For instance, I would like to change the block cart so that it can be hooked on top. Since the original version doesn’t have that hook I need to change install() function! I can`t change the original source (it would be a bad idea isn’t it…) file I need to override install() function by inheriting block cart module. Is it possible to do so and where I can find an example?