Woocommerce结帐流程在付款时创建新订单 [英] Woocommerce checkout process creating new order at payment
问题描述
我在WordPress/Woocommerce为客户创建第二个订单时遇到问题.这导致了几个问题,我将在下面概述.这是我正在遵循的过程:
I'm having a problem with WordPress/Woocommerce creating a second order for customers. This is leading to a couple issues that I'll outline below. Here is the process I am following:
- 创建并填充新的Woocommerce订阅对象
- 创建新的续订订单(下面的ID为1033)并将发票发送给客户
- 客户登录并在我的帐户"页面中找到待处理订单
- 客户打开待处理订单,并用正确的产品和价格填充该订单.客户支付正确的金额
- 付款后,客户在收据屏幕上,但该订单用于新订单.旧订单仍处于待处理状态.
查看访问日志后,我可以看到以下内容:
After looking at the access log, I can see this:
- 以下是输入链接(预付款):/checkout/order-pay/1033
- 这是评论链接(后付款):/checkout/order-received/1055
我遇到的问题是:
- 我已经测试了完成付款十多次,并且只能在第一时间进行复制.我尽可能地遵循了相同的步骤(所有其他交易都在按预期方式进行而未创建额外订单的情况下)
- 初始订单已连接到订阅,并且在完成付款后,订阅将设置为自动付款.收到新订单的问题将导致该订单分离,并且只有在处理下一笔付款(一个月后)后才能启用自动付款,这将取决于客户再次手动提交订单.
有人知道WordPress/Woocommerce为什么在付款时创建第二个订单吗?
Does anyone have any idea why WordPress/Woocommerce is creating a second order upon payment.
推荐答案
我在将续期付款应用于新订单时遇到了同样的问题.就我而言,手动添加的订阅以及导入的订阅一直存在此问题.
I was having the same issue with renewal payments getting applied to a new order. In my case, I was consistently having this issue with manually added subscriptions, as well as with imported subscriptions.
与Woocommerce订阅支持一起工作后,他们发布了一个更新(版本2.1.0)为我解决了该问题.他们的更改日志引用了此修复程序.
After working with Woocommerce Subscriptions Support, they came out with an update (version 2.1.0) solving the issue for me. Their change log references the fix.
修复:在处理续订时不要创建新订单,并通过确保在创建订单时WooCommerce使用的购物车哈希已更新来将具有不同详细信息的付款重新订阅到原始订单. (PR#1687)
Fix: Do not create new orders when processing a renewal and resubscribe payment with different details to the original order by ensuring the cart hash used by WooCommerce is updated when creating the order. (PR#1687)
尝试将Woocommerce订阅更新到版本2.1.0.
Try updating Woocommerce Subscriptions to version 2.1.0.
这篇关于Woocommerce结帐流程在付款时创建新订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!