simberak Posted October 23, 2016 Share Posted October 23, 2016 Hello, I would like to change the header of one page checkout (shopping cart/checkout page). I would like to let there just the logo and the rest I would like to change. I can unhook the modules that are there, but how to add there that new content I want? Thanks for help, Daniel Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2016 Share Posted October 24, 2016 Assuming you're using the native one-page checkout, you can use code like the following in header.tpl: {if $page_name == 'order-opc'} One-page checkout header code goes here {else} Normal header code goes here {/if} Link to comment Share on other sites More sharing options...
simberak Posted October 24, 2016 Author Share Posted October 24, 2016 Hello rocky and thanks for your answer I have the great OPC module from Peter Sliacky http://www.canin.sk/prestashop/presta-modules/24-one-page-checkout.html and the url looks like /index.php?controller=order-opc So by your help I will unhook all modules from display top from order-opc (done and working) and now I will just need to insert the code {if $page_name == 'order-opc'} One-page checkout header code goes here into the header into the place where the header modules appeared, so in my case between the tag <div id="sticky_top" class="col-xs-12 col-sm-12 col-md-8"></div> So it will show only in order-opc, is that code right? I guess it need some ending? And wont it be better to insert there an external file load with the content of header, so it wont slows all other pages except the order-opc, where it will be in the source code? Thank you for answer and wish u a great day! Daniel Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2016 Share Posted October 24, 2016 Yes, you need a closing tab: {if $page_name == 'order-opc'} One-page checkout header code goes here {/if} Link to comment Share on other sites More sharing options...
simberak Posted October 24, 2016 Author Share Posted October 24, 2016 Yes, thank you very much rocky 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