用于订单状态的Virtuemart中的插件事件方法 [英] Plugin event methods in Virtuemart for order status

查看:125
本文介绍了用于订单状态的Virtuemart中的插件事件方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的订单清单在后端, 当订单状态从购物者确认"更改为已发货"或已确认"时,我想触发插件事件

I have my order list in the backend , I want to fire plugin events when order status is changed from Confirmed by Shopper to "Shipped" or "Confirmed"

已经使用

plgVmConfirmedOrder()

plgVmConfirmedOrder()

这是由购物者确认的,并且成功发送了SMS 也是

Which is for confirmed by shopper, and successful transimission of SMS Also

plgVmOnShipOrderPayment()没有响应.

plgVmOnShipOrderPayment() Not responding.

还有其他方法或方式吗?我希望SMS网关使用这种方法.

Any other method or way to do so? I want this methods for the SMS gateway.

推荐答案

我找到了解决此问题的方法.

I found the solution to this question.

为此,您可以使用plgVmOnUpdateOrderPayment($ virtuemart_order,$ status),该状态在每次订单状态更改时触发.

You can use plgVmOnUpdateOrderPayment($virtuemart_order,$status) for this purpose which is fired during each order status change.

对于相应的订单状态,例如确认订单状态为"C",如下进行确认检查,

For respective order status e.g. Confirmed order-status 'C', Put a validation check as follows,

if($virtuemart_order->order_status != 'C')  { return ; }

您可以将其用于不同的订单状态.

You can use this for different order status.

就像,如果答案对您有用.

Like , If the answer is useful for you.

这篇关于用于订单状态的Virtuemart中的插件事件方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆