News:

Support the VirtueMart project and become a member

Main Menu

Adding new menu item to the back-office

Started by OriyanJ, January 28, 2016, 08:27:56 AM

Previous topic - Next topic

OriyanJ

VirtueMart 3.0.12

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



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?
VirtueMart 3.2.2

GJC Web Design

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, '', '', '')
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

OriyanJ

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?
VirtueMart 3.2.2

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

OriyanJ

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.
VirtueMart 3.2.2

Studio 42

#5
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