VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: robs113 on February 09, 2012, 16:34:01 PM

Title: Is there an event triggered when order is complete?
Post by: robs113 on February 09, 2012, 16:34:01 PM
I need to trigger some code in my component when the order is complete (paid). No shipping is required.

Looking at the Payment plug-ins wiki I see plgVmOnConfirmedOrderStorePaymentData.

The wiki for this says..
'This triggers the stock updates if required'

however the abstract in the code says..
'This method is fired when showing the order details in the backend'.

These seem to be conflicting descriptions.

Is this the event I should trigger on?
If so is there an example of its use anywhere?

Thanks
Title: Re: Is there an event triggered when order is complete?
Post by: muasif80 on February 11, 2012, 21:43:38 PM
Use the method plgVmConfirmedOrder
Title: Re: Is there an event triggered when order is complete?
Post by: robs113 on March 18, 2012, 19:35:28 PM
Pardon my ignorance here but I cannot see 'plgVmConfirmedOrder' in the vm plug-in docs and the only place I see it in the source is as a function inside the PayPal payment plug-in.

For a post-order processing plug-in, I need an event that fires when an order is complete, regardless of payment, or shipping, method the user chooses.
Title: Re: Is there an event triggered when order is complete?
Post by: estevan83 on May 22, 2012, 14:39:29 PM
Hi,
I've the same question!!

Has anyone find the solution?

Thanks in advance
Title: Re: Is there an event triggered when order is complete?
Post by: PRO on May 22, 2012, 15:43:48 PM
robs113

the view pluginresponse    is the page you end up AFTER the order