• Hi,

    Quick question – I couldn’t find the answer anywhere online – how long does the customer’s cart contents stay in their cart for?

    Assuming an admin doesn’t clear down the sessions from the back-end, and all customers will be forced to be signed in on the WP site, will the cart contents persist indefinitely until they remove the items or checkout?

    Thanks

    https://www.ads-software.com/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I might be mistaken, but it should be 48 hours.

    Thread Starter crdunst

    (@crdunst)

    Thanks Diego – do you have any idea how to extend this?

    Maybe look at woocommerce/includes/class-wc-session-handler.php

    lines 102-108

    /**
    	 * Set session expiration.
    	 */
    	public function set_session_expiration() {
    		$this->_session_expiring   = time() + intval( apply_filters( 'wc_session_expiring', 60 * 60 * 47 ) ); // 47 Hours.
    		$this->_session_expiration = time() + intval( apply_filters( 'wc_session_expiration', 60 * 60 * 48 ) ); // 48 Hours.
    	}
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cart Duration’ is closed to new replies.