• Resolved dponi00

    (@dponi00)


    Hello Mr. Clayton,

    I hope you’re doing well. I’m testing a site before launch and have found that when I choose to pay with Stripe, the cart isn’t emptied even if the order goes through. I’m using Stripe’s test cards.

    I read the post published by another user which is marked as solved, but I don’t think I have anything that interferes with the way WooCommerce processes checkouts since the other payment methods do clear up the cart (PayPal, etc).

    Thank you in advance for your help.

    Delie

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @dponi00,

    Thanks for contacting us. Can you describe in detail your test scenario? I just tested a payment on your site via the checkout page and the cart item was emptied as expected. Order #153. My steps are as follows:

    1. Added item to cart
    2. Navigate to Checkout page via Cart page
    3. Entered billing details and test card number
    4. Clicked Place Order
    5. Redirected to order received page where cart showed as being empty.

    Kind Regards,

    Thread Starter dponi00

    (@dponi00)

    Hi @mrclayton,

    thanks for your reply. I did some more tests and it seems it only happens if the user is logged in when checking out. If I checkout as a guest the cart is cleared correctly.

    The only thing I’m doing differently is that I log in before proceeding with the steps you outlined.

    Thanks again for your help!

    Plugin Author Clayton R

    (@mrclayton)

    @dponi00,

    I’ll do some tests on my site as a logged in user. I expect it to empty the cart but will confirm.

    Kind regards,

    Plugin Author Clayton R

    (@mrclayton)

    Hi @dponi00,

    As a logged in user my cart was emptied after purchasing a product via the checkout page.

    We are planning a scheduled release soon so I can always add an explicit cart empty call given that some 3rd party plugins might affect if it’s emptied or not.

    Kind Regards,

    Thread Starter dponi00

    (@dponi00)

    That would be amazing, thank you!

    Looking forward to the release 🙂

    Have a great weekend!

    Plugin Author Clayton R

    (@mrclayton)

    @dponi00,

    I did some more digging and it looks like some themes still display the cart contents on the order received page if the persistent cart is not cleared along with the regular cart.

    I bet if you click your cart link when it shows it’s not emptied, you will be redirected to the cart page and it will say your cart is empty.

    I added an additional line of code to ensure it clears the persistent cart and that will be in the next release due out soon.

    Kind Regards,

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Cart Not Empty after Successful Payment’ is closed to new replies.