| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hide left col on home, checkout, and cart | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'm using the xcart two column template and I want to hide the column on the home page x-cart 4.4. The code in template already hides that column on checkout and cart page.
Here is the original code that hides <div id="left-bar"> on checkout and cart page: Code:
Here's the code I tried but it doesn't work. I've tried many variation of this but nothing works. Code:
Any ideas. Thanks
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5 Linux |
|||||||
#2
|
|||||||
|
|||||||
![]() Wrap {if ($main neq 'cart' or $cart_empty) and $main neq 'checkout'} round your left bar div and also you will have to modify the centre section to remove the left margin from the page.
__________________
Live with Gold 4.5.1 Dedicated Linux server MaxCDN 4 pull zones Dedicated SSL ![]() |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the reply. I figured out how to do it. If I read your message right, you suggest the same way
Anyway, code below works. {if ($main neq 'cart' or $cart_empty) and $main neq 'checkout'} {if $main neq 'catalog' or $current_category.category neq ""} <div id="left-bar"> {include file="customer/left_bar.tpl"} </div> {/if} {/if}
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5 Linux |
|||||||
|
#4
|
|||||||||
|
|||||||||
![]() Or:
{if ($main neq "cart" or $cart_empty) and $main neq "checkout" and ($main neq "catalog" or $current_category.category neq "")} Or better: {if ($main neq "cart" or $cart_empty) and $main neq "checkout" and not ($main eq "catalog" and $current_category.category eq "")} |
|||||||||
|
|||
X-Cart forums © 2001-2020
|