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

Hide left col on home, checkout, and cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-03-2013, 03:38 PM
 
taponitrof taponitrof is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 105
 

Default Hide left col on home, checkout, and cart

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:
{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout'}

Here's the code I tried but it doesn't work. I've tried many variation of this but nothing works.

Code:
{if ($main neq 'catalog' or $current_category.category neq "") or $main neq 'checkout' and ($main neq 'cart' or $cart_empty) }

Any ideas.

Thanks
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5
Linux
Reply With Quote
  #2  
Old 07-05-2013, 06:27 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: Hide left col on home, checkout, and cart

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

Reply With Quote
  #3  
Old 07-05-2013, 11:34 AM
 
taponitrof taponitrof is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 105
 

Default Re: Hide left col on home, checkout, and cart

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
Reply With Quote

The following user thanks taponitrof for this useful post:
xp-group (02-16-2014)
  #4  
Old 07-05-2013, 05:06 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Hide left col on home, checkout, and cart

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 "")}
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:43 AM.

   

 
X-Cart forums © 2001-2020