Possible Conflict with Funnelkit Product Thumbnail when Item count is increased
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
调研方向
在观察 wc-ajax=update_order_review 请求的响应时重现 checkout 失败,然后追踪该 JSON 响应在插件中的组装位置。当项目数量达到 7 时响应仍然有效,并且 checkout 不再陷入加载循环,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Description
The issue is reported here: https://wordpress.org/support/topic/woo-commerce-cart-problem/
The problem is that when a website is using Funnelkit checkout pages for WooCommerce. If you add a product to cart and then go to the checkout page, if you keep increasing the item count, when you reach 7 count the checkout page will break.
I've already analyzed the issue and the root cause behind this issue is a wrong string concatenation inside the JSON response that is sent when you increase the item count and a POST request is sent to /?wc-ajax=update_order_review&wfacp_id=56501&wfacp_is_checkout_override=yes
For example, when you do not get the error, you will see that the request to https://www.staging18.masacoustics.it/?wc-ajax=update_order_review&wfacp_id=56501&wfacp_is_checkout_override=yes will have a response like this: https://i.imgur.com/LKVYPuS.jpeg and https://i.imgur.com/zmCZxHB.jpeg
And when it breaks, you can clearly see the JSON being broken: https://i.imgur.com/7GnkBB7.jpeg and https://i.imgur.com/av3PLuP.jpeg
Step-by-step reproduction instructions
- Go to
https://www.staging18.masacoustics.it/shop/isolamento-acustico/barriera-acustica-flat-barrier-10a/ - Check on add to cart button (https://i.imgur.com/8Bjz8zE.jpeg)
- Now go to the cart (https://i.imgur.com/e8Oj7MZ.jpeg)
- Now keep increasing the item count (https://i.imgur.com/p576EdL.jpeg) until the the section just keeps on looping the loading animation
- Keep an eye on the network tab of the browser console so that you can spot the issue with the JSON response count from
/?wc-ajax=update_order_reviewrequests
Screenshots, screen recording, code snippet or Help Scout ticket
Video demonstration of the issue: https://mega.nz/file/qUcUGRbB#Glix4VsgKthAI_zDTYBS9lDp_s1lrQy3LNESPIYQD2E
Environment info
No response
Is the issue you are reporting a regression
No
- 主要语言
- PHP
- 星标
- 73
- 派生
- 14
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 18
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Codeinwp/optimole-wp 的其他 Issue
-
bug-report bug-report-triage crash-report regression
难度 4/5 3-5 天 新手友好度 45/100
Codeinwp/optimole-wp#1163 ·
维护者通常 1 天内回复
-
bug-report bug-report-triage crash-report
难度 4/5 3-5 天 新手友好度 65/100
Codeinwp/optimole-wp#1162 ·
维护者通常 1 天内回复
-
customer report feature-request-triage
难度 3/5 1-2 天 新手友好度 65/100
Codeinwp/optimole-wp#1161 ·
维护者通常 1 天内回复
-
bug-report bug-report-triage customer report regression
难度 4/5 3-5 天 新手友好度 56/100
Codeinwp/optimole-wp#1159 ·
维护者通常 1 天内回复
-
customer report feature-request-triage
难度 3/5 1-2 天 新手友好度 55/100
Codeinwp/optimole-wp#1151 ·
维护者通常 1 天内回复
查看 Codeinwp/optimole-wp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
UX
难度 2/5 1-3 小时 新手友好度 72/100
ProfessionalWiki/NeoWiki#1573 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
endoflife-date/endoflife.date#11194 ·
维护者通常 1 天内回复