Carts getting deleted
-
I’m new to woocommerce, I’m having a problem my customers day to day add products to the cart, they finish the order in 5-6 days, but sometimes after 2 days the users are forced loged out from WP and the carts are cleaned.
Or simply when they log out the cart is empty. I don’t want this behavior. Is there some way to save the cart in the DB? or there is other way to fix this behavior?Tried to extend session but not worked
add_filter(‘wc_session_expiring’ , ‘my_wc_session_expiring’);
add_filter(‘wc_session_expiration’ , ‘my_wc_session_expiration’);function my_wc_session_expiring($seconds) {
return (60 * 60 * 24 * 8) – (60 * 60);
}
function my_wc_session_expiration($seconds) {
return 60 * 60 * 24 * 8;
}The page I need help with: [log in to see the link]
The topic ‘Carts getting deleted’ is closed to new replies.