Jump to content

Custom home page


FireFoxII
 Share

Recommended Posts

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

Share this post


Link to post
Share on other sites

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 by pishkus (see edit history)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More