krunal nanda
krunal nanda

Reputation: 235

Plugin event methods in Virtuemart for order status

I have my order list in the backend , I want to fire plugin events when order status is changed from Confirmed by Shopper to "Shipped" or "Confirmed"

Already using

plgVmConfirmedOrder()

Which is for confirmed by shopper, and successful transimission of SMS Also

plgVmOnShipOrderPayment() Not responding.

Any other method or way to do so? I want this methods for the SMS gateway.

Upvotes: 0

Views: 1326

Answers (1)

krunal nanda
krunal nanda

Reputation: 235

I found the solution to this question.

You can use plgVmOnUpdateOrderPayment($virtuemart_order,$status) for this purpose which is fired during each order status change.

For respective order status e.g. Confirmed order-status 'C', Put a validation check as follows,

if($virtuemart_order->order_status != 'C')  { return ; }

You can use this for different order status.

Like , If the answer is useful for you.

Upvotes: 3

Related Questions