cancel
Showing results for 
Search instead for 
Did you mean: 

raise shopping cart timeout

raise shopping cart timeout

How do I raise the timeout for the shopping cart? -> "/shop/checkout/cart/"

I have tried to raise all numbers I could find to 24 hours but still it resets itself after I think about 10 minutes.

PHP session.gc_maxlifetime is also set to 86400.

 

PS: With timeout I mean that after some time the items I put into the cart are cleared and I get "no items in cart".

I'm currently on Magento 2.1.5

4 REPLIES

Re: raise shopping cart timeout

@ZakMageKracken

 

Easiest option is to enable Persistent Shopping cart. Have you considered this option? 

 

A persistent shopping cart keeps track of unpurchased items which are left in the cart, and saves the information for the customer’s next visit. Customers who are “remembered” can have the contents of their shopping carts restored the next time they visit your store.

 

More Details: http://docs.magento.com/m1/ce/user_guide/sales/shopping-cart-persistent.html

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: raise shopping cart timeout

That would be one option and I tried it by enabling persistent shopping cart.

But the result is the same. After some time the cart gets pruned.

Re: raise shopping cart timeout

@ZakMageKracken

 

As I understand Magento carts are saved as quotes, even for guests. Logged in users have a customer ID which is stored with the quote, guests do not so their quote has a null customer ID, hence you may find a store has a lot of orphaned/incomplete quotes in the DB.

 

Have you tried changing the quote life time in your Magento admin? Screenshot attached. Configuration   Settings   Stores   Magento Admin.png

 

 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: raise shopping cart timeout

Yes I deliberately set that to a custom value of 30 (days). Instead of taking the system default which is probably 30 days too.

But no change either and this is days not minutes.

 

Otherwise the shop is pretty basic. I have not even setup much, just one config. product, as I develop a theme.

I have raised other timeouts like for the admin and that seems to be working.

Just the cart won't.