No Quick Acess Icons in VM 2.9.9.2 Control Panel View

Started by razor7, November 05, 2014, 14:54:30 PM

Previous topic - Next topic

razor7

Hi, today I noticed that there are no Quick Access Icons in VM 2.9.9.2 control panel view. Digging a little deeper I found that the whole code of thet quick access buttons where removed!

To fix it I have grabbed the code from latest VM 2.6.10 and edited view file administrator/components/com_virtuemart/views/virtuemart/tmpl/default_controlpanel.php, added the code just after "<div id="cpanel">" arround line 76

    <?php if ($this->canDo->get('core.admin') || $this->canDo->get('vm.product')) { ?>
<div class="icon"><?php VmImage::displayImageButton(JROUTE::_('index.php?option=com_virtuemart&view=product'), 'vm_shop_products_48'JText::_('COM_VIRTUEMART_PRODUCT_S')); ?></div>
    <?php ?>
    <?php if ($this->canDo->get('core.admin') || $this->canDo->get('vm.category')) { ?>
<div class="icon"><?php VmImage::displayImageButton(JROUTE::_('index.php?option=com_virtuemart&view=category'), 'vm_shop_categories_48'JText::_('COM_VIRTUEMART_CATEGORY_S')); ?></div>
    <?php ?>
    <?php if ($this->canDo->get('core.admin') || $this->canDo->get('vm.orders')) { ?>
<div class="icon"><?php VmImage::displayImageButton(JROUTE::_('index.php?option=com_virtuemart&view=orders'), 'vm_shop_orders_48'JText::_('COM_VIRTUEMART_ORDER_S')); ?></div>
    <?php ?>

    <?php  if ($this->canDo->get('core.admin') || $this->canDo->get('vm.paymentmethod')) { ?>
<div class="icon"><?php VmImage::displayImageButton(JROUTE::_('index.php?option=com_virtuemart&view=paymentmethod'), 'vm_shop_payment_48'JText::_('COM_VIRTUEMART_PAYMENTMETHOD_S')); ?></div>
    <?php }  ?>
    <?php if ($this->canDo->get('core.admin') || $this->canDo->get('vm.user')) { ?>
<div class="icon"><?php VmImage::displayImageButton(JROUTE::_('index.php?option=com_virtuemart&view=user'), 'vm_shop_users_48'JText::_('COM_VIRTUEMART_USER_S')); ?></div>
    <?php ?>
<div class="clear"></div>
    <?php if ($this->canDo->get('core.admin')) { ?>
<div class="icon"><?php VmImage::displayImageButton(JROUTE::_('index.php?option=com_virtuemart&view=config'), 'vm_shop_configuration_48'JText::_('COM_VIRTUEMART_CONFIG')); ?></div>
    <?php ?>
    <?php if ($this->canDo->get('core.admin') || $this->canDo->get('vm.user.editshop')) { ?>
<div class="icon"><?php VmImage::displayImageButton(JROUTE::_('index.php?option=com_virtuemart&view=user&task=editshop'), 'vm_shop_mart_48'JText::_('COM_VIRTUEMART_STORE')); ?></div>
    <?php ?>
<div class="icon"><?php VmImage::displayImageButton('http://virtuemart.net/community/translations''vm_country_48'JText::_('COM_VIRTUEMART_TRANSLATIONS'), 'vmicon48','target="_blank"'); ?></div>
<div class="icon"><?php VmImage::displayImageButton('http://docs.virtuemart.net''vm_shop_help_48'JText::_('COM_VIRTUEMART_DOCUMENTATION'), 'vmicon48','target="_blank"'); ?></div>
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store