FireFoxII Posted June 12, 2015 Share Posted June 12, 2015 Hi all I want to ask if it's possible to change home page of my prestashop with a custom one and then add a link "ecommerce" that address to "old" home page with Favourites, most sell etc... Sorry for my english Thanks Link to comment Share on other sites More sharing options...
pishkus Posted June 13, 2015 Share Posted June 13, 2015 (edited) I'm not sure what exactly you are trying to achieve, but I would do something like this: open file themes/my_theme/header.tpl. Right after the <body{ [...] line add the following: {if $page_name == 'index' && !$smarty.get.show} {include file="$tpl_dir./my_custom_homepage.tpl"} {else} Then at the very end of the same file add {/if} Then on both themes/my_theme/footer.tpl and themes/my_theme/index.tpl beginning add {if !($page_name == 'index' && !$smarty.get.show)} and at the end of those files add {/if} Then in the my_custom_homepage.tpl template add a homepage link which would have a show=1 parameter. Home this helps. EDIT: in the footer.tpl file add {/if} before </body> tag. Edited June 14, 2015 by pishkus (see edit history) 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