Magento 2.2.x Notice: As outlined by the Magento Software Lifecycle Policy, Magento 2.2.x has reached the End-of-Support and will no longer receive quality fixes or documentation updates. To maintain your site's performance, security, and PCIPayment Card Industry: Refers to debit and credit cards and their associated businesses. compliance, upgrade to the latest version of Magento.
Configuring a Persistent Cart
During the setup of a persistent shopping cartA grouping of products that the customer wishes to purchase at the end of their shopping session., you can specify the lifetime of the cookies, and which options you want to make available for various customer activities.
If the session cookie expires while the customer is logged in, the persistent cookie remains active.
To configure a persistent cart:
|1.||On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.|
|2.||In the panel on the left under Customers, choose Persistent Shopping Cart.|
|3.||If necessary, expand the General Options section.|
|4.||To enable the persistent shopping cart and display additional options, set Enable Persistence to “Yes.” Then, do the following:|
|a.||In the Persistence Lifetime (seconds) field, enter the length of time, in seconds, that you want the persistent cookie to last. The default value of 31,536,000 seconds is equal to one year, and is the maximum time allowed.|
|b.||Set Enable “Remember Me” to one of the following:|
Displays the “Remember Me” checkbox on the Login page of your store, so customers can choose to save their shopping cart information.
Persistence can still be enabled, but customers are not given the option to choose if they want to save their information.
|c.||To preselect the “Remember Me” checkbox, set Remember Me Default Value to “Yes.”|
|d.||Set Clear Persistence on Log Out to one of the following:|
The shopping cart is cleared when a registered customer logs out.
The shopping cart is saved when a registered customer logs out.
If the session cookie expires while the customer is still logged in, the persistent cookie remains in use.
|e.||Set Persist Shopping Cart to one of the following:|
If the session cookie expires, the persistent cookie is preserved. If a guest shopper later logs in or creates a new account, the shopping cart is restored.
The shopping cart is not preserved for guests after the session cookie expires.
|5.||When complete, tap Save Config.|