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
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.
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.
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.
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.