Author Topic: Virtuemart webhook to change order status  (Read 340 times)

m.davide82

  • Jr. Member
  • **
  • Posts: 166
Virtuemart webhook to change order status
« on: April 22, 2020, 09:44:23 am »
Hi,

anyone can help me to have a virtuemart webhook to change order status?


Thanks in advance.
Davide

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Virtuemart webhook to change order status
« Reply #1 on: April 22, 2020, 10:34:36 am »
Yes

we have plugin for change order status.
From external ERP Systems (like a SAP, Helios, Cezar or MS Azzure) by calling URL with some params.

After call this URL (URL ith order and params), then order change status and order who is payed by payment card change confirm payment too (second checkbox in order detail)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9650
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Virtuemart webhook to change order status
« Reply #2 on: April 22, 2020, 10:40:10 am »
Look in most payment plugins .. there is the code ... you need to write the php to trigger the function

perhaps code a dummy payment plugin and trigger it by the standard   

index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=xx&pm=xxx

calls  function plgVmOnPaymentResponseReceived(&$html)

and code your own checks and validation

or a system plugin to do basically the same
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

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Virtuemart webhook to change order status
« Reply #3 on: April 22, 2020, 10:51:26 am »
yes, the system plugin, who change order

status who wants (setup in Status Order Change Plugin)
pairing ID (order number or ID number)
write to logs
use as cron + setup token

See attachment (soory is not in english :)

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

m.davide82

  • Jr. Member
  • **
  • Posts: 166
Re: Virtuemart webhook to change order status
« Reply #4 on: April 22, 2020, 15:06:00 pm »
Hi,

thank you very much for the answers.

I need that when my order is shipped, the status must be changed to Shipped from en external system that mages the shippings.

It send a post for each status changer of the shipping, I need that when it's shipped, it changes the order status.

Here's the details of the webhook:
https://webhook.qapla.dev/#shipments


Thanks.
Davide

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Virtuemart webhook to change order status
« Reply #5 on: April 22, 2020, 15:37:53 pm »
yes,

we connected VM from external mobile app and this webhook we are used too.
For this we must created system plugin, similar to what I sent, only the URL will be called webhook, and the plugin will process this webhook and call the internal function to change the order status.

Nice programming work.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

m.davide82

  • Jr. Member
  • **
  • Posts: 166
Re: Virtuemart webhook to change order status
« Reply #6 on: April 22, 2020, 15:44:03 pm »
Ok @Pinochico, thanks.

Can you send me a quote, please?


Thanks.
Davide

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Virtuemart webhook to change order status
« Reply #7 on: April 22, 2020, 15:55:10 pm »
yes I answer tomorrow by email
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Virtuemart webhook to change order status
« Reply #8 on: April 22, 2020, 16:17:45 pm »
I send email
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates