Empty Cart sign

GK User
Wed May 09, 2012 9:47 am
hello,
when i click on 'cart' that is empty, I need to have this sign in it: Your cart is empty. Now it shows only blank My Cart when it is nothing in it. Is it possible to have "your cart is empty" sign there?
Virtuemart 2.0.6. with eSport
regards,
Martin
User avatar
Fresh Boarder

teitbite
Wed May 16, 2012 5:47 am
Hi

Please show me Your site.
User avatar
Moderator

GK User
Wed May 16, 2012 10:57 am
www.cyklon.sk

The same is in e-sport demo. It shows only My Cart and Show Cart. Not the cart is empty sign.
User avatar
Fresh Boarder

teitbite
Thu May 17, 2012 6:02 pm
Hi

Ok. Looks like it was not designed that way. It's simply a button which is opening a popup with module position for cart.

Code: Select all
                <?php if($this->modules('cart')) : ?>
                <a href="#" id="btnCart"><?php echo JText::_('TPL_GK_LANG_MY_CART'); ?><span><?php echo JText::_('TPL_GK_LANG_MY_CART_LOADING'); ?></span></a>
                <?php endif; ?>


It can be easily adjusted by adding a condition, but I have no idea how to check if cart is empty. You can try to ask about this condition at VM forum, so I'll help You with using it in this place.
User avatar
Moderator


cron