| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Hide various sections on Home page only | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
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
|
|||||||||
|
|||||||||
|
{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
|
|||||||
|
|||||||
|
Perfect. Thanks!
|
|||||||
|
#4
|
|||||||
|
|||||||
|
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
|
|||