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

Cart if statement

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-18-2003, 09:26 AM
 
jgkiefer jgkiefer is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 85
 

Default Cart if statement

I would like to only have the cart module display only if there is something in it. What if statement would I use for this?
Reply With Quote
  #2  
Old 04-18-2003, 11:11 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Hi,

Yeah - put the following into home.tpl where the include for the menu_cart.tpl is.

Code:
{if $minicart_total_items > 0} { include file="customer/menu_cart.tpl" } {/if}

__________________
ex x-cart guru
Reply With Quote
  #3  
Old 04-19-2003, 06:17 AM
 
jgkiefer jgkiefer is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 85
 

Default

Thanks again!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:26 AM.

   

 
X-Cart forums © 2001-2020