Setting Up A Persistent Shopping Cart in Magento
A persistent shopping cart keeps track of unpurchased items left in the cart, and saves the information for the customer’s next visit.
Customers who are ‘remembered’ can have the contents of their shipping carts restored the next time they visit your store.
Using a persistent shopping cart can help reduce the number of abandoned shopping carts and increase sales. It is important to understand that using a persistent shipping cart does not expose sensitive account information at any time. During the time a persistent shopping cart is in use, both registered customers and guest shoppers are required to either log in to an existing account, or create a new account before going through the checkout process.
For guest shoppers, a persistent shopping cart is the only way to retrieve information from a previous session.
To use the persistent shopping cart, the customer’s browser must be set to allow cookies. During operation, a persistent shopping cart makes use of the following types of cookies:
- Session Cookies: The short-term session cookie exists for the duration of a single visit to your site, and expires when the customer leaves or after a set period of time.
- Persistent Cookie: The long-term persistent cookie continues in existence after the end of the session, and can save a record of the shopping cart contents for up to a year.
Multiple Devices and Browsers
A persistent shopping cart retains a record of the shopping cart contents, even if the customer later uses different devices to shop in your store. For example, a customer can add an item to the shopping cart from a laptop, edit the cart contents from a desktop computer, add more items from a mobile device, and complete the checkout process from a tablet. If the customer uses multiple browsers while visiting your store during a single, persistent session, any changes made in one browser will be reflected in any other browser when the page is refreshed. While the persistent shopping cart is enabled, your store creates and maintains a separate persistent cookie for each browser that is used by a customer to log in or create an account.
To set up a persistent shopping cart:
- From the Admin panel, select System > Configuration.
- In the Configuration panel on the left, under Customers, select Persistent Shopping Cart. Then, click to expand the General Options section.
- To enable the persistent shopping cart and to display additional configuration options, set Enable Persistence to “Yes.”
- Then, do the following:When complete, click the Save Config button.
- Set Persistence Lifetime (seconds) to the length of time that you want the persistent cookie to last. The default value 31,536,000 seconds is equal to one year, and is the maximum time allowed.
- Set Enable “Remember Me” to one of the following:
To preselect the “Remember Me” checkbox, set Remember Me Default Value to “Yes.”
- Yes: Displays the “Remember Me” checkbox on the Login page of your store, so customers can choose to save their shopping cart information.
- No: Persistence can still be enabled, but customers are not given the option to choose if they want to save their information.
- To preselect the ‘Remember Me’ checkbox, set Remember Me Default Value to “Yes.”
- Set Clear Persistence on Log Out to one of the following:
- Yes: The shopping cart information is cleared when a registered customer logs out.
- No: The shopping cart information is saved when a registered customer logs out.
- Set Persist Shopping Cart to one of the following
- Yes: 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 information is restored.
- No: Shopping cart information is not preserved for a guest after the session cookie expires.
If you need more help with the set-up of a persistent shopping cart, please check out our solutions page.
You must be logged in to post a comment.