X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Different head.tpl on home / welcome page? (https://forum.x-cart.com/showthread.php?t=47553)

Scott DeToffol 05-14-2009 10:27 AM

Different head.tpl on home / welcome page?
 
My designer has a header he wants on the home page / welcome page that differs from the rest of the site. I assume I can use an if / else statement to call to a custom head.tpl (e.g. head-home.tpl) only on the home page.

Any suggestions for what the code would be? Where does is go - home.tpl or welecome.tpl?

(this is for a 4.2.1 site)

TIA

Scott DeToffol 05-14-2009 12:29 PM

Re: Different head.tpl on home / welcome page?
 
Answering my own question:

In home.tpl

<div id="header">
{if $main eq "catalog" and $current_category.category eq ""}

{include file="customer/head-welcome.tpl"}

{else}

{include file="customer/head.tpl"}

{/if}
</div>

xtech 06-07-2011 02:03 AM

Re: Different head.tpl on home / welcome page?
 
I want to make different header for cart and checkout page.How to code it on 4.4.2?

JWait 06-11-2011 09:07 AM

Re: Different head.tpl on home / welcome page?
 
Quote:

Originally Posted by xtech
I want to make different header for cart and checkout page.How to code it on 4.4.2?


One_Page_Checkout does this by default if you are using one of the alternate skins (Artistic, Vivid Dreams, Fashion Mosiac, etc.).


All times are GMT -8. The time now is 11:17 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.