The following steps help you to enable persistent cart in Magento 2:
- Persistent Lifetime(seconds)
- Enable “remember me”
- “remember me” default value
- Clear persistent on log out
- Persist shopping cart
Some person would like to maintain the products in the shopping cart after the client login. So here we will learn about configuration persistent cart in magento 2
- In admin page navigate to go to many store->configuration->customer->persistent shopping cart
- Then select “yes” in the option “enable persistence”.
Persistent Lifetime (second)
It is the time that you want the persistent cookie to end. The default value is 31,536,000 seconds is equal to one year and it allows maximum time.
Enable “remember me”
This option is used to display “remember me” check box on the login page of your store, so customer able to select to save their shopping cart information.
“Remember me” Default value
You can select “yes” if you want to set Default option “remember me” for the customer when he login to your store.
Clear persistent on log out
This option is used to clear the shopping cart after customer login. Select no to keep the product in the shopping cart .hence the shopping cart still has the product even the customer can logout and change account.
Persist Shopping cart
You can select “yes” if you want the persistent cookie still conserved if the session cookie expires, if a visitor consumer later login or create a new account, the shopping cart is restored. If you select “No” it will make your shopping cart is not preserved for visitors after the cookie expired.
The following steps shows you how to enable persistent cart in Magento 2.
Last Update: April 9, 2018