VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: prombez on January 24, 2012, 16:11:42 PM

Title: No order data in plgVmOnUpdateOrderShipment
Post by: prombez on January 24, 2012, 16:11:42 PM
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?