VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: OriyanJ on January 28, 2016, 08:27:56 AM

Title: Adding new menu item to the back-office
Post by: OriyanJ on January 28, 2016, 08:27:56 AM
VirtueMart 3.0.12

What I'm trying to achieve is adding new menu item to the back-office likewise -

(http://i.imgur.com/ACgfp4Q.jpg)

I'm sure if it's possible, the process might be agonizing. I want to do this so I could add a new parameter to a product, which resembles manufacturers/categories list and which I could manage.
Seems possible?
Title: Re: Adding new menu item to the back-office
Post by: GJC Web Design on January 28, 2016, 10:04:31 AM
it is just an entry in  #__virtuemart_adminmenuentries

do something like

INSERT INTO #__virtuemart_adminmenuentries VALUES ('', 1, 0, 'My Link', 'index.php?my_url', '', 'vmicon', 0, 1, '', '', '')
Title: Re: Adding new menu item to the back-office
Post by: OriyanJ on February 01, 2016, 11:20:56 AM
I've created a new table row in the _virtuemart_adminmenuentries called "guides".
I've duplicated the administrator/views/manufacturer folder and changed it to "guides".
I've inserted the right value fields in the _virtuemart_adminmenuentries and I still get this error -
Fatal Error in maincontroller admin.virtuemart.php: Couldnt find file guides

I thought I could just display the same Manufacturer list that way and later on to override and extend it to a new database Product Guides.
What am I doing wrong? Or what could I do better?
Title: Re: Adding new menu item to the back-office
Post by: GJC Web Design on February 01, 2016, 14:08:00 PM
you need a controller as well
Title: Re: Adding new menu item to the back-office
Post by: OriyanJ on February 01, 2016, 14:30:32 PM
Let's say I only want to duplicate Manufacturers, is duplicating files (controllers, views) and creating new row at database would be enough?
It seems to not work at all.
Title: Re: Adding new menu item to the back-office
Post by: Studio 42 on February 01, 2016, 22:05:26 PM
you need to write an SQL
or go to your table with phpMyAdmin for eg.
the table is XXX_virtuemart_adminmenuentries XXX is your Joomla tables prefix.

OUPS, i don't have read all.
If you need to write in table you need to use MVC so a model a view and a controller and table to use tables in Joomla.
If you don't understand what GJC Web Design worte and what i wrote, please refer to some Joomla tutorial.
And if your product guide is only a new textfield for products, you need to write a plugin or use product customfield textarea or editor, it's more logic.

Regards,
Patrick