woocommerce-blocks icon indicating copy to clipboard operation
woocommerce-blocks copied to clipboard

Items not removed from the cart when checking out with PayPal Standard

Open alexflorisca opened this issue 2 years ago • 4 comments

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:

  1. Install & enable Paypal Standard
  2. Add any product to your basket
  3. Go to Blocks Checkout page
  4. 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)
  5. Click "Return to Merchant"
  6. You should see the order summary page and cart icon showing the number of cart items for your order.
  7. Go to Cart page.
  8. 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

Screenshot 2022-05-11 at 12 11 37

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]

alexflorisca avatar May 11 '22 11:05 alexflorisca

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?

tomasztunik avatar May 11 '22 11:05 tomasztunik

Yep, I haven't investigated yet, but most probably!

alexflorisca avatar May 11 '22 12:05 alexflorisca

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.

github-actions[bot] avatar Jul 11 '22 09:07 github-actions[bot]

I could not reproduce this, I tested it a few times with different accounts and different carts.

opr avatar Aug 03 '22 15:08 opr

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

alexflorisca avatar Aug 15 '22 14:08 alexflorisca

Just noting we also have a similar issue logged here https://github.com/woocommerce/woocommerce-blocks/issues/7233

mikejolley avatar Dec 19 '22 16:12 mikejolley

Just tested, seems that #8236 solves this.

opr avatar Jan 31 '23 11:01 opr