Author Topic: Update orderrowstatus hook  (Read 998 times)


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


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?


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

       $_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
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
Contact for any VirtueMart or Joomla development & customisation