![]() |
if statement to test for products in cart?
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 |
Solution: if statement to test for products in cart?
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. |
All times are GMT -8. The time now is 02:17 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.