arslantabassum Posted April 29, 2014 Share Posted April 29, 2014 I have a module and i want to override homeslider module with my custom module, My module should be run on the place of homeslider at index page..All suggestions are appreciated>>....... Link to comment Share on other sites More sharing options...
vekia Posted April 29, 2014 Share Posted April 29, 2014 prestashop doesnt allow to override module .php files. you can only override module .tpl files in your theme directory. if you want to "override" .php file, you have to create different module (code can be the same, but you have to use different class name and module directory name) there is no other way. 1 Link to comment Share on other sites More sharing options...
arslantabassum Posted April 30, 2014 Author Share Posted April 30, 2014 (edited) prestashop doesnt allow to override module .php files. you can only override module .tpl files in your theme directory. if you want to "override" .php file, you have to create different module (code can be the same, but you have to use different class name and module directory name) there is no other way. I have created a custom module , ** (code can be the same, but you have to use different class name and module directory name) ** Please explain it more... Edited April 30, 2014 by arslantabassum (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 30, 2014 Share Posted April 30, 2014 just disable default slider module and put your module to the position, where the default one is at the moment (modules > positions tab in your back office) Link to comment Share on other sites More sharing options...
arslantabassum Posted May 5, 2014 Author Share Posted May 5, 2014 just disable default slider module and put your module to the position, where the default one is at the moment (modules > positions tab in your back office) Disables image slider and change hook to displayTopColumn and it works Link to comment Share on other sites More sharing options...
vekia Posted May 5, 2014 Share Posted May 5, 2014 hello so, you achieved everything that you expected in this thread? 1 Link to comment Share on other sites More sharing options...
arslantabassum Posted May 7, 2014 Author Share Posted May 7, 2014 hello so, you achieved everything that you expected in this thread? Yes, Thanks...... Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 thank you for confirmation i can go ahead and mark this topic as solved with regards, MIlos 1 Link to comment Share on other sites More sharing options...
Recommended Posts