VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: gba on October 11, 2017, 13:56:39 PM

Title: [SOLVED] How to call URI instead of sending an e-mail to the vendor?
Post by: gba on October 11, 2017, 13:56:39 PM
Hi!

How can I make VM 3.2.5 calling a special URI instead of sending an e-mail to the vendor, when order state changes?
Thank you very much in advance for any useful hint!

Kind regards,
Gerald
Title: Re: How to call URI instead of sending an e-mail to the vendor?
Post by: GJC Web Design on October 11, 2017, 16:55:43 PM
use a plugin

functions

function plgVmOnUpdateOrderPayment ($data,$old_order_status)

or 

function plgVmOnUpdateSingleItem ($data, $order)

Title: Re: How to call URI instead of sending an e-mail to the vendor?
Post by: gba on October 17, 2017, 12:06:36 PM
Hi!

Thank you for your hint.
Do I understand you right, that you would create VMPayment plugin containing the function 'plgVmOnUpdateOrderPayment'?
I tried this, and it works very well!
And it is even independent of vendor mail setting.

Kind regards,
Gerald