Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Different head.tpl on home / welcome page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-14-2009, 10:27 AM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Question 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
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
  #2  
Old 05-14-2009, 12:29 PM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default 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>
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote

The following user thanks Scott DeToffol for this useful post:
XBOX4LIFE (06-09-2011)
  #3  
Old 06-07-2011, 02:03 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default 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?
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #4  
Old 06-11-2011, 09:07 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.).
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:17 PM.

   

 
X-Cart forums © 2001-2020