WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Clearing the cart (4 posts)

  1. designerdevon
    Member
    Posted 10 months 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?

    http://wordpress.org/extend/plugins/woocommerce/

  2. jameskoster
    Member
    Plugin Author

    Posted 9 months ago #

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

  3. designerdevon
    Member
    Posted 9 months 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
    Member
    Posted 9 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.