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

Showing Cart.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-21-2003, 08:25 AM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default Showing Cart.

Im having a mind block.

Basically I want the mini cart to only show up if an item is in it.

What would be the easiest way to write an if statement that says:

{if cart has an item in it} { include file="customer/menu_cart.tpl" }
{else} "dont show anything" {/if}
{if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if}

*show nothing is meaning I want the next tpl to move to the top as if Cart.tpl isnt even there.
Next tpl is auth.tpl

Any quick ideas? Im trying to do like 3 things at once and im stressin my mind out I think.
Reply With Quote
  #2  
Old 10-21-2003, 11:03 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

this is the general idea

Code:
{if $minicart_total_items > 0} do this {else} do this instead {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 10-21-2003, 11:50 AM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

thanks.
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 06:57 AM.

   

 
X-Cart forums © 2001-2020