News:

Support the VirtueMart project and become a member

Main Menu

Update orderrowstatus hook

Started by sveawebpay, September 22, 2014, 14:42:25 PM

Previous topic - Next topic

sveawebpay

Hi,
I am writing a Payment plugin for vm2. I want to implement the change  of status on an order item. I find the following hooks, but cant get them to work:

plgVmOnUpdateOrderLine
plgVmOnEditOrderLineBEPayment
plgVmOnUpdateSingleItem

My actions are to change the status in an order item in the admin interface, and click save. But my functions are not triggered.

Are they suppose to? Or is there an other way?

Thanks
Anneli

GJC Web Design

plgVmOnUpdateSingleItem e.g.  only calls custom plugs - check the others

JPluginHelper::importPlugin('vmcustom');
      $_dispatcher = JDispatcher::getInstance();
        $_returnValues = $_dispatcher->trigger('plgVmOnUpdateSingleItem',array($table,&$orderdata));

but are you trying the other way? update the status FROM the payment plug?
Look in the authorize one - it's the simplest to understand
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