News:

Support the VirtueMart project and become a member

Main Menu

Plugin event for editing/deleting product category

Started by Rsn, July 27, 2020, 07:41:24 AM

Previous topic - Next topic

Rsn

Hello colleagues.

Please, orient me:
Is there a trigger for joomla plugins when saving/deleting VM category?

If this is not yet available, maybe it should be implemented?

I would like to be able to make a plugin for such an event.

GJC Web Design

sadly no  .. there is no trigger

I have used a system plugin and filter by

$data = vRequest::getRequest();

if($data['option'] == 'com_virtuemart' && $data['view'] == 'category' && $data['task'] == 'apply'){

}

but difficult to get the data of the cat change

or a core hack in administrator\components\com_virtuemart\models\category.php - the public function store(&$data) ~ line 573 add after the line:


/**************GJC CORE HACK ********************/
VmConfig::importVMPlugins('vmcustom');
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('plgVmAfterStoreCategory',array(&$data));
/*************GJC CORE HACK ********************/

Maybe Max would consider adding?
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

pinochico

QuoteMaybe Max would consider adding?

Maybe, we are waiting 7 years :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Rsn