Does Woocommerce clear abandoned carts for logged in users? If so, what is the default lifespan and is it possible to change this?

I would like to set a long expiry for authenticated user's carts so they can visit the site over a long period of time and update their cart.


The answer is to use the wc_session_expiring and wc_session_expiration filters in the functions.php

I've since built a Woocommerce extension/plugin to allow the control of the expiry/lifetime of customer carts in the Woocommerce admin settings http://mtrl.co.uk/shop/product/woocommerce-cart-lifespan-settings-plugin/

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.