5

I am building a Magento 2 store. The Cart is saved for one hour only, it get deleted after one hour of inactivity. Is there any setting on Magento that allow a longer (may be a week or so) cart session time. Or some coding changes are need to archive this?

4

You can set it from admin configuration.

Admin >> Store >> Configuration >> Customers >> Persistent Shopping Cart >> General Options >> Enable Persistence.

set it as Yes.

  • Quote Lifetime set to 30 Days but it still get empty in 1hour? – Arun Karnawat Jul 13 '17 at 5:37
  • Check my updated answer. – Suresh Chikani Jul 13 '17 at 5:40
0

Everything enabled but still facing cart expiry issue for guest checkout, any idea? My magento version is 2.1.15

0

This change needs to be made via php.ini as per the Magento documents there is currently no setting that will extend the session life of the cart.

Within php.ini you need to modify session.gc_maxlifetime restart php and restart apache

0

To update Quote Lifetime, Go to:

Admin > Store > Configuration > Sales > Checkout > Shopping Cart > Quote Lifetime

To Enable Persistent Cart (A persistent shopping cart keeps track of unpurchased items left in the cart, and saves the information for the customer’s next visit.), Go to:

Admin > Store > Configuration > Customers > Persistent Shopping Cart > General Options > Enable Persistence

Set Yes

This 2 setting Enable us to manage cart better and reduce cart abandonment rate.

0

You need to configure below setting to YES,

Admin >> Store >> Configuration >> Customers >> Persistent Shopping Cart >> General Options >> Enable Persistence.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.