| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Hide various sections on Home page only | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Hide various sections on Home page only
I would like to hide certain sections from displaying only on the Home page - e.g. categories menu, login section, cart, etc.
Obviously an if statement is required. Can anyone please advise? Thanks |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Hide various sections on Home page only
{if $main eq "catalog" and $current_category.category eq ""}
displays on home page {else} does not display {/if}
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#3
|
|||||||
|
|||||||
Re: Hide various sections on Home page only
Perfect. Thanks!
|
|||||||
#4
|
|||||||
|
|||||||
Re: Hide various sections on Home page only
Does this if statement apply for 4.2.X as well?
What .tpl do you use the statement in - customer/home.tpl or customer/main/welcome.tpl? Quote:
__________________
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|