Clearing the cart (4 posts)

  1. dynamek
    Posted 3 years ago #

    After going through the cart, checkout and payment you go back to the website and the cart still has the products in the basket. Is there a way to make sure that the basket gets emptied once it has gone through the checkout?


  2. James Koster
    Plugin Author

    Posted 3 years ago #

    It should be emptied. Perhaps you have same cache module enabled on your server, or a badly configured cache plugin activated?

  3. dynamek
    Posted 3 years ago #

    Hi thanks for your reply. I thought it might be a cache issue but I don't have any cache plugin installed. I'm not sure about the server, but I wouldn't have thought so.

    I have worked out a way around now for anyone that has a similar issue...
    I have added <?php woocommerce_empty_cart(); ?> to the 'Thank you' page template that woocommerce takes you back to after payment. A little bit hacky but seems to do the job.

  4. Breeshey
    Posted 3 years ago #

    Hi, I am having the exact same issue. Could you please tell me where in the Thankyou page template you added your code. I have tried a few places but no luck so far. Many thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.