Possible Conflict with Funnelkit Product Thumbnail when Item count is increased
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Tái hiện lỗi checkout trong khi theo dõi phản hồi của yêu cầu wc-ajax=update_order_review, sau đó truy vết nơi phản hồi JSON đó được tạo trong plugin. Công việc được hoàn tất khi phản hồi vẫn hợp lệ khi số lượng mặt hàng đạt 7 và checkout không còn lặp vô hạn ở trạng thái đang tải.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 73
- Fork
- 14
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Codeinwp/optimole-wp
-
bug-report bug-report-triage crash-report
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 65/100
Codeinwp/optimole-wp#1162 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
customer report feature-request-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
Codeinwp/optimole-wp#1161 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug-report bug-report-triage customer report regression
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
Codeinwp/optimole-wp#1159 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
customer report feature-request-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Codeinwp/optimole-wp#1151 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug-report bug-report-triage crash-report
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Codeinwp/optimole-wp#1139 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Codeinwp/optimole-wp
Issue tương tự
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
az-digital/az_quickstart#6077 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Toolkit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] v-quick-install-app install crashes with ValueError if no supported PHP version is installedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add `kjkpc.net`Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
FGRibreau/mailchecker#625 ·