Author Topic: Adding another menu item in vm administration?  (Read 1969 times)

GixxerMKD

  • Beginner
  • *
  • Posts: 18
Adding another menu item in vm administration?
« on: July 18, 2011, 19:45:34 pm »
Hi guys,

i wan't to add another menu in vm admin, between manufacturer and help menus. I've created new module called "transactions", then opened header.php and added this code:

Code: [Select]
case 'Transactions':
?>
<h3 class="title-smenu" title="transactions" onclick="SwitchMenu('<?php echo $modCount ?>')">
<?php echo "Transactions"
?>

</h3>
<div class="section-smenu">
<ul>

<li class="item-smenu vmicon vmicon-16-content">
<a href="<?php $sess->purl($_SERVER['PHP_SELF']."?pshop_mode=admin&amp;page=baze"?>">Transactions</a>
</li>

</ul>
</div>
<?php 
$modCount++;
break;


so now i can see the menu item, but when i click on it i get "ERROR You do not have permission to access the requested module. " even thou i have selected admin and storeadmin in "Module Perms:".

The strange thing is that i see the file (baze.php) rendered above the menu  :o

What i want to achieve is to load the file content inside virtuemart admin, if i'm doing it wrong please let me know what's the procedure..

thanks,
Gixxer

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10412
  • VirtueMart Version: 3+
Re: Adding another menu item in vm administration?
« Reply #1 on: July 18, 2011, 19:52:41 pm »
Did you enable it in functions?
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

GixxerMKD

  • Beginner
  • *
  • Posts: 18
Re: Adding another menu item in vm administration?
« Reply #2 on: July 18, 2011, 20:06:27 pm »
nope, the functions list is empty...should i create new function? if so can i kindly ask you to let me know what should be in there?

thanks

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10412
  • VirtueMart Version: 3+
Re: Adding another menu item in vm administration?
« Reply #3 on: July 18, 2011, 20:32:24 pm »
I dont know exactly how to do this.

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

GixxerMKD

  • Beginner
  • *
  • Posts: 18
Re: Adding another menu item in vm administration?
« Reply #4 on: July 18, 2011, 20:41:37 pm »
Thanks for your time mate, at least you tried to help ;)

anyone else knows how can i add custom menu item in administration?