| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Different head.tpl on home / welcome page? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|