truetaurus Posted June 10, 2018 Share Posted June 10, 2018 I want to add a hook into the FrontController (classes\controller\FrontController.php) (or anywhere else if you have a better idea), and then run some custom code. However if i ever update prestashop, this will be removed right? So is there anyway to prevent this? like overriding the frontController in my custom theme folder? Link to comment Share on other sites More sharing options...
phinq1910 Posted June 11, 2018 Share Posted June 11, 2018 You can use override function of prestashop - refer http://doc.prestashop.com/display/PS16/Overriding+default+behaviors Link to comment Share on other sites More sharing options...
truetaurus Posted June 11, 2018 Author Share Posted June 11, 2018 I should have probably clarified, i am using 1.7 and i dont think that works in 1.7 Link to comment Share on other sites More sharing options...
phinq1910 Posted June 11, 2018 Share Posted June 11, 2018 Its working fine. Just override file then clear prestashop cache Link to comment Share on other sites More sharing options...
truetaurus Posted June 11, 2018 Author Share Posted June 11, 2018 And override I create in my custom theme folder? Link to comment Share on other sites More sharing options...
joseantgv Posted June 11, 2018 Share Posted June 11, 2018 6 hours ago, truetaurus said: And override I create in my custom theme folder? Overrides are not created in theme. Please check doc http://doc.prestashop.com/display/PS16/Overriding+default+behaviors 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