News:

Support the VirtueMart project and become a member

Main Menu

No order data in plgVmOnUpdateOrderShipment

Started by prombez, January 24, 2012, 16:11:42 PM

Previous topic - Next topic

prombez

Joomla 1.7.3 VM2.0
I would like to send the order info to another site on the order status changing for Shipped. The change can be caused  by the payment status or the administrator's actions. It is reasonable to replace plgVmOnUpdateOrderShipment method (getting active on the status changing)in the plugin that is derivative of vmPSPlugin but! this method does not receive either virtuemart_order_id, nor other order data. I have to apply updateStatusForOneOrder method for VirtueMartModelOrders so that virtuemart_order_id could be sent to plgVmOnUpdateOrderShipment. This is not desirable. So there is a question - is there any other way of emplemenation? or is there any possibility to get virtuemart_order_id  in  plgVmOnUpdateOrderShipment method?