VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandomatyas on November 15, 2018, 16:47:17 PM

Title: Update order status in plgVmOnUpdateOrderPayment
Post by: sandomatyas on November 15, 2018, 16:47:17 PM
Here is a scenario:
The shop admin changes the status of an order
A plgVmOnUpdateOrderPayment method in a vmcustom plugin checks the new status anf if it's C, it should send the order data to an external API and if it returns with success, change the status to a new one (F) with a comment, which contains the data I got from the API.
As far as I can see there are 2 options.
There is only one trigger AFTER the order is stored, which is vmcupon's plgVmCouponUpdateOrderStatus
Any idea how should I manage this?
Maybe a plgVmAfterUpdateOrder trigger could help with this.
Title: Re: Update order status in plgVmOnUpdateOrderPayment
Post by: sandomatyas on November 21, 2018, 10:11:37 AM
any guess maybe?
Title: Re: Update order status in plgVmOnUpdateOrderPayment
Post by: hazael on September 09, 2022, 10:23:41 AM
Okay, but where is the bug you're reporting here?
Title: Re: Update order status in plgVmOnUpdateOrderPayment
Post by: sandomatyas on September 09, 2022, 14:28:03 PM
hi, this is a 2018 topic, I haven't checked this lately.
Title: Re: Update order status in plgVmOnUpdateOrderPayment
Post by: hazael on September 09, 2022, 14:50:08 PM
hmmm. I just don't understand why this topic was displayed as the newest post on this forum  :o
Someone deleted their last post...
Title: Re: Update order status in plgVmOnUpdateOrderPayment
Post by: Jörgen on September 23, 2022, 15:15:06 PM
Probably spam deletion.
Jörgen