Kunsthelden Posted September 20, 2017 Share Posted September 20, 2017 Dear team, I have written an override controller file and put it into and deleted cache: /modules/jmarketplace/override/controllers/front/myfile I also tried out: - /override/controllers/front/myfile - /override/modules/mymodule/controllers/front/myfile (with Prestashop 1.7.2.1) All three didn't work. The mymodule was installed before amending the controller file and adding it to the override folder. Myfile 'class NameModuleFrontController extends ModuleFrontController' is trying to override a file that starts already with an extend like 'class NameModuleFrontController extends ModuleFrontController'. I followed instr on: http://doc.prestashop.com/display/PS16/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingamodule'sbehavior Does anybody know what I do wrong or not take into concideration? Kind regards Link to comment Share on other sites More sharing options...
bellini13 Posted September 20, 2017 Share Posted September 20, 2017 what core controller are you trying to override? 1 Link to comment Share on other sites More sharing options...
Kunsthelden Posted October 22, 2017 Author Share Posted October 22, 2017 Dear Bellini Thank you so much for your offered support. I was able to manage to override controllers. I'm personally not so convinced by the TPL where I got the impression that TPLs have not yet a good override solution as controllers. I'll set it as closed. Mistake was that I didn't use the word override for modules. Kind regards, PR Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now