• Resolved 2ysub2ysur

    (@2ysub2ysur)


    This is a general inquiry: I am working on a website for a client and once a customer adds a product or two to their cart, they want the items to be saved in the cart for an extended period of time (rather than refreshing automatically after a day or so.)

    By default, how long are products saved in the WooCommerce cart?
    Is there any easy way to modify this length of time, if required?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @2ysub2ysur,

    By default, customer and cart sessions are saved in the database for 48 hours. There is an option related to the “Hold stock” timer on the WooCommerce > Settings > Products > Inventory page, but that is related to “Pending” orders- which doesn’t sound like what you’re looking for (if I understood correctly).

    You can customize the cart sessions via custom code (as referenced here, or like this example here), or you can use a plugin to define what that period should be instead (like this plugin available on our site).

    I hope this helps, but if you’re looking for something different, let us know!

    Thread Starter 2ysub2ysur

    (@2ysub2ysur)

    Super helpful, thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How long are items saved in cart?’ is closed to new replies.