I would like to allow ONLY registered users of my site to access the shopping cart, which you reach by clicking on MY CART > SHOW CART.
How can I achieve this?
Thx
<?php if($this->API->modules('cart')) : ?>
<a href="index.php?option=com_virtuemart&view=cart" id="btnCart"><?php echo JText::_('TPL_GK_LANG_MY_CART'); ?><span><?php echo JText::_('TPL_GK_LANG_MY_CART_LOADING'); ?></span></a>
<?php endif; ?>
<?php if($this->API->modules('cart') && $userID!= 0) : ?>
<a href="index.php?option=com_virtuemart&view=cart" id="btnCart"><?php echo JText::_('TPL_GK_LANG_MY_CART'); ?><span><?php echo JText::_('TPL_GK_LANG_MY_CART_LOADING'); ?></span></a>
<?php endif; ?>
