| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
if statement to test for products in cart? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I want to display or not display mini-cart based on whether there are any items in the cart. eg. {if cart is-not-empty} showthis {/if} Thanks x-cart 4.1.10
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5 Linux |
|||||||
#2
|
|||||||
|
|||||||
![]() I just stumbled on the answer looking in the minicart.tpl file:
{if $minicart_total_items > 0} { include file="customer/menu_cart.tpl" } {/if} This hides the mini cart until customer adds an item to it.
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5 Linux |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|