facebook-for-woocommerce
facebook-for-woocommerce copied to clipboard
[GlobalStep] Cart sometimes fails to update after an order is placed
I am filing this bug on behalf of @gglobalstep. Literally copy-pasting the original: https://github.com/woocommerce/woocommerce-facebook/issues/9 It was first filed in Core and then moved to https://github.com/woocommerce/woocommerce-facebook which I thought was the repository for the Facebook for WooCommerce
extension. From there I couldn't transfer the issue further (GitHub didn't find this repo) which is why I am copy-pasting the issue.
Please see my comments in https://github.com/woocommerce/woocommerce-facebook/issues/9 where I did troubleshooting and managed to isolate the issue to Facebook for WooCommerce
2.4.0 extension.
Bug Description:
Cart fails to update after an order is placed
Environment:
Woocommerce Version : WooCommerce 5.2.2 and 5.3.0 Beta WordPress version: (v5.7)
PC: Windows 10, Mac 10.14.6 Chrome(Version 89.0.4389.90) Firefox(Version 87.0) Safari: v13.1.1
Steps To Reproduce:
- Create any test site using the JN site.
- Install and activate all the required plugins
- Complete the onboarding setup wizard setup
- Complete "Get ready to start selling" section on WooCommerce->Home Page
- Go to frontend and add some products to cart from shop by clicking on "Add to Cart" button
- Click on "View Cart" button say that you have added "t-shirt"
- Click on "Proceed to Checkout"
- Click on "Place Order" after entering the address and selecting a payment method
- Click on "Cart" option after you are navigated to Order details page
- Note that cart is either displayed empty or displays the product you have just ordered (t-shirt)
- Add the same product that you had just ordered, to the cart and view the cart (t-shirt)
- Note that the quantity for (t-shirt) is 2 now but you had added only one (t-shirt)
- Observe that Cart fails to get empty after an order is placed
Note: If Cart is displayed as empty after a product is ordered, when the user purchases the same product that he had just ordered, its quantity gets multiplied when viewed in the cart. Observed on specific JN Site
Actual Result:
Cart fails to update after an order is placed
Expected Result:
Cart should update after an order is placed
Videos:
https://user-images.githubusercontent.com/41110392/115748163-8c1b3980-a3b3-11eb-905e-715566086f2f.mp4 https://user-images.githubusercontent.com/41110392/115748184-90475700-a3b3-11eb-94bd-6d82d2995f3d.mp4
Isolating the problem (mark completed items with an [x]):
- [ ] I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
- [ ] This bug happens with a default WordPress theme active, or Storefront.
- [x] I can reproduce this bug consistently using the steps above.
I was unable to reproduce this on my test store (local dev). I was testing with the latest trunk
for WooCommerce and master
Facebook for WooCommerce (should be equivalent to 2.4.0). I tried a few variations of the flow with different products, in Chrome (admin user) and Safari (guest shopper user).
@juliaamosova any idea how to reliably reproduce this? As far as I can tell from your comments on other issue this is intermittent - i.e. only happens sometimes. Is that correct?
first filed in Core and then moved to https://github.com/woocommerce/woocommerce-facebook which I thought was the repository for the Facebook for WooCommerce extension.
Dang! I had no idea that repo existed, how confusing, thanks for raising this @juliaamosova! I added a disclaimer / link to the repo readme, maybe we can get that repo archived.
Thanks for looking into this @haszari!
@juliaamosova any idea how to reliably reproduce this? As far as I can tell from your comments on other issue this is intermittent - i.e. only happens sometimes. Is that correct?
Well, that is the thing, I don't know how to reproduce it either which is a bummer. I did, however, originally had access to the site where @gglobalstep tested and where I could also reproduce the issue and where I isolated it to Facebook extension. I just checked that site and it is no longer available (it was the JN site).
As mentioned above, I could not reproduce it on any of my own test sites. With this in mind, I am fine closing this issue but we can keep an eye on this pattern during testing in case it happens again and report back.
Dang! I had no idea that repo existed, how confusing, thanks for raising this @juliaamosova! I added a disclaimer / link to the repo readme, maybe we can get that repo archived.
Thank you!