Using Cart position for a 'normal' menu ?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Aug 30, 2012 9:38 am
Reply with quote
Report this post
Hi there

Is it possible to use the cart position for a normal Joomla menu ?

Everytime I publish something to that position I get the VM Cart "My Cart" even though that module is unpublished ?

I would like to create my own menu and then publish it in place of the VM MY Cart module.

Apologies if this has been asked before, I couldn't find an answer despite looking :-(

Thanks,
User avatar
Fresh Boarder

GK User
Thu Aug 30, 2012 12:14 pm
Reply with quote
Report this post
It isn't possible without complex changes, because the cart module position is placed in the popup.
User avatar
Administrator

GK User
Sun Sep 23, 2012 8:49 am
Reply with quote
Report this post
Hi thanks for your info.

In that case would it be possible to remove that module completley ?

At the moment despite the module in that position being unpublished I still get a Register link which I'd like to remove ?

Thanks,
User avatar
Fresh Boarder

teitbite
Sun Sep 23, 2012 9:20 am
Reply with quote
Report this post
Hi

Please edit /layouts/default.php and remove this code:

Code: Select all
             <?php if($this->API->modules('cart')) : ?>
             <a href="index.php?option=com_virtuemart&amp;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->get('register_link', 1) && $userID == 0) : ?>
             <a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
             <?php endif; ?>
             
             <?php if($this->API->modules('login')) : ?>
             <a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><?php echo $btn_login_text; ?></a>
             <?php endif; ?>
User avatar
Moderator


cron