Plugin event methods in Virtuemart for order status(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()
用于购物者确认,并成功发送短信还有
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 中用于订单状态的插件事件方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Virtuemart 中用于订单状态的插件事件方法


基础教程推荐
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01