woocommerce-blocks
woocommerce-blocks copied to clipboard
Items not removed from the cart when checking out with PayPal Standard
Describe the bug
Cart items don't reset after placing an order with Paypal standard. Once the order goes through, the confirmation page is shown but the items are not removed from the cart
To reproduce
Steps to reproduce the behavior:
- Install & enable Paypal Standard
- Add any product to your basket
- Go to Blocks Checkout page
- Checkout with PayPal standard (you can create an account with my a8c email address if you don't have one already. You can also use card number 4242 4242 4242 4242 and any valid expiry and CVC number)
- Click "Return to Merchant"
- You should see the order summary page and cart icon showing the number of cart items for your order.
- Go to Cart page.
- The same items you just placed an order for should be there
Expected behaviour
I would expect the cart to be empty after placing the order
Screenshots
Environment
WordPress (please complete the following information):
- Core version: [e.g. 5.9]
- WooCommerce version: [e.g. 6.4]
- WooCommerce Blocks version: [e.g. 7.6.0]
This sounds like an issue with the payment service or extension responding with success before the order was fully updated or not changing the order (cart) status to pending and clearing the cart once it started being processed.
Do you think this is on our side @alexflorisca?
Yep, I haven't investigated yet, but most probably!
This issue has been marked as stale
because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.
Internal: After 10 days with no activity this issue will be automatically be closed.
I could not reproduce this, I tested it a few times with different accounts and different carts.
I can still replicate on a local version of WP, see video below (and apologies for the long wait times between page load, my machine being slow). Maybe let's pair on it if you want?
https://user-images.githubusercontent.com/3966773/184654558-5dd7d6a2-a680-4370-9ab1-a541797035a7.mov
Just noting we also have a similar issue logged here https://github.com/woocommerce/woocommerce-blocks/issues/7233
Just tested, seems that #8236 solves this.