X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Showing Cart. (https://forum.x-cart.com/showthread.php?t=4870)

Gibberish 10-21-2003 08:25 AM

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.

shan 10-21-2003 11:03 AM

this is the general idea

Code:

{if $minicart_total_items > 0}

do this

{else}

do this instead

{/if}


Gibberish 10-21-2003 11:50 AM

thanks.


All times are GMT -8. The time now is 06:45 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.