Author Topic: Update orderrowstatus hook  (Read 998 times)

sveawebpay

  • Beginner
  • *
  • Posts: 1
Update orderrowstatus hook
« on: September 22, 2014, 14:42:25 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9650
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Update orderrowstatus hook
« Reply #1 on: September 23, 2014, 11:18:23 am »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation