oana06 Posted March 14, 2017 Share Posted March 14, 2017 Hey guys, I have a hook registered on footer (from a module) but I've seen it's not triggered on the checkout page. It works on the other pages, only on that particular one. And this is only on PrestaShop 1.7, because the same code on 1.6 and 1.5 works fine. Has anyone encountered something like this? Thanks! Link to comment Share on other sites More sharing options...
rocky Posted March 15, 2017 Share Posted March 15, 2017 This is by design. PrestaShop v1.7 has a separate simplified header and footer just for checkout pages to reduce distractions. The idea is that customers should finish checking out before doing anything else. The main header and footer files are themes/classic/templates/_partials/header.tpl and footer.tpl. The checkout header and footer files are themes/classic/templates/checkout/_partials/header.tpl and footer.tpl. You'll notice the checkout footer.tpl file doesn't have the footer hooks like the main footer.tpl file does. Link to comment Share on other sites More sharing options...
oana06 Posted March 16, 2017 Author Share Posted March 16, 2017 Thank you, rocky! Currently for 1.7 I added a new hook - displayAfterBodyOpeningTag that also works on checkout page. Link to comment Share on other sites More sharing options...
goldies Posted April 4, 2020 Share Posted April 4, 2020 For me this worked fine: you need to copy header and footer tpl files in checkout folder go to themes/yourtheme/templates/_partials and copy header.tpl and footer.tpl files paste them into /themes/yourtheme/checkout/_partials and override existing files Link to comment Share on other sites More sharing options...
Smithikakart Posted September 20, 2020 Share Posted September 20, 2020 Tried this one but still cant bring the footer part while in checkout process any one pls help me to fix this one using custom theme for fresh installation its working fine..... On 3/15/2017 at 9:14 AM, rocky said: This is by design. PrestaShop v1.7 has a separate simplified header and footer just for checkout pages to reduce distractions. The idea is that customers should finish checking out before doing anything else. The main header and footer files are themes/classic/templates/_partials/header.tpl and footer.tpl. The checkout header and footer files are themes/classic/templates/checkout/_partials/header.tpl and footer.tpl. You'll notice the checkout footer.tpl file doesn't have the footer hooks like the main footer.tpl file does. Link to comment Share on other sites More sharing options...
Smithikakart Posted September 20, 2020 Share Posted September 20, 2020 After changed block name from footer to foot and everything fine now and one more anyone help me out to fix sp one step checkout? module installed and once enabled nothing reflect in the checkout page any one pls help..... 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