Author Topic: [SOLVED] How to call URI instead of sending an e-mail to the vendor?  (Read 218 times)

gba

  • Jr. Member
  • **
  • Posts: 230
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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7655
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: How to call URI instead of sending an e-mail to the vendor?
« Reply #1 on: October 11, 2017, 16:55:43 pm »
use a plugin

functions

function plgVmOnUpdateOrderPayment ($data,$old_order_status)

or 

function plgVmOnUpdateSingleItem ($data, $order)

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

  • Jr. Member
  • **
  • Posts: 230
Re: How to call URI instead of sending an e-mail to the vendor?
« Reply #2 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