为什么状态不能转换为"pending_pending"?在网关取消的订单? [英] Why is state not transitioning to "payment_pending" for orders cancelled at gateway?
问题描述
我正在使用Magento社区ver1.6.1.0.
我在Magento Wiki http://www.magentocommerce.com/wiki/上找到了此状态图2 _-_ magento_concepts_and_architecture/order_management
I am using Magento community ver1.6.1.0.
I found this state diagram on Magento wiki http://www.magentocommerce.com/wiki/2_-_magento_concepts_and_architecture/order_management
我的问题是状态切换,如红色粗线所示.
当用户离开我的(商家)站点时,状态为新状态(状态=待处理).但是,如果客户未完成付款(在付款网关处),则状态仍为待处理",而状态应为"pending_payment".在"pending_payment"状态下,工作人员将致电客户以寻求任何麻烦.
My problem is the state switching as shown by bold red lines.
When a user goes away from my (merchant) site, the state is new (status=pending). But if the customer does not completes payment (at payment gateway), the status is still "pending", whereas it should be "pending_payment". In "pending_payment" state, staff will call the customer to ask for any trouble.
所以我的问题是,为什么要按照此图进行状态转换?还是我错过了什么?我该如何解决?因为很难区分COD的挂起"订单和此类中止的"订单.
So my question is, why are state transitioning as per this diagram? Or am I missing something? How do I solve this? because it is hard to distinguish between COD "pending" and such "aborted" orders.
谢谢!
推荐答案
我添加了一项cron作业,以将状态从待处理"更改为待付款".它可以完成工作,并且可以配置为确保新订单不会转移.转换完成后,还可以添加一个简单的邮件功能来通知工作人员.
I added a cron job to change state from "pending" to "pending payment". It does the job, and can be configured to take care that new orders are not transitioned. Also a simple mail function can be added to notify the staff, when this transition is made.
完整的答案(我本人)在这里: https://stackoverflow.com/a/11131787/558094
The complete answer (by me) is here : https://stackoverflow.com/a/11131787/558094
这篇关于为什么状态不能转换为"pending_pending"?在网关取消的订单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!