Shipment plugin execute code when certain status is reached

Started by Kuubs, June 16, 2020, 17:35:50 PM

Previous topic - Next topic

Kuubs

Hello,

I have a shipment plugin and I want to execute code (send an order to a third party website) when a certain order status is reached. At this moment this happens in the plgVmConfirmedOrder method, but that method fires after every order. Does anyone know how to achieve this?

GJC Web Design

What has a shipment plugin got to do with order status?
payment plugins handle status...

But to notify on status etc I normally use a system or custom plugin and trigger on

function plgVmOnUpdateOrderPayment ($data,$old_order_status)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Kuubs

Quote from: GJC Web Design on June 16, 2020, 20:33:17 PM
What has a shipment plugin got to do with order status?
payment plugins handle status...

But to notify on status etc I normally use a system or custom plugin and trigger on

function plgVmOnUpdateOrderPayment ($data,$old_order_status)

Yeah but my shipment plugin sends the order to a third party. But it only needs to do this when a certain order status is reached.

Ok so I will need an additional plugin to handle this functionality.