Magento 2How To GuideApril 23, 2021

How to Enable Persistent Shopping Cart in Magento 2?

How to Enable Persistent Shopping Cart in Magento 2?

We are not wrong when we claim that Magento 2 provides powerful and out of the box features. It comes with all the options that may help in facilitating conversions.

One such out of the box feature in Magento 2 is that of the persistent shopping cart. In our last article, we talked about Magento 2 Whishlist and how they help in improving conversions. Persistent shopping cart is also somewhat similar to wishlist except that here customers have added products to cart and abandoned it for one reason or another.

What is a Persistent Shopping Cart?

According to official Magento documentation, “a persistent shopping cart keeps track of unpurchased items that are left in the cart and saves the information for the customer's next visit.” Put simply, a persistent shopping cart saves all the products that customers have added to the cart and abandoned it for up to a year.

For example, a user has added some products to cart and left your store without completing the purchase. The persistent shopping cart will save all these products and show them to the user if he comes back to the store within a year. The user must login to go through checkout.

The obvious benefit of this feature is that it can help reduce the number of abandoned carts.

Quick Note: Don't Forget to Check Out Our Magento 2 Mini Cart Extension

Configure Persistent Shopping Cart in Magento 2

  • From the Admin Panel, go to Stores - > Settings -> Configuration.
  • Expand Customers and select Persistent Shopping Cart.
enable persistent shopping cart in magento 2 Uncheck the Use system value checkbox and select ‘Yes’ for the Enable Persistence option. You will now be shown 5 more fields.
  • Persistence Lifetime (seconds): Here you can set how long you need to store shopping cart data in seconds. The maximal number is one year or 31,536,000 seconds.
  • Enable “Remember Me”: This option decides whether the “Remember Me” checkbox will appear on the login and registration pages or not. Selecting No will save customer information by default.
  • “Remember Me” Default Value: This option sets the default value for the “Remember Me” checkbox. Set No, if you want to leave it empty.
  • Clear Persistence on Sign Out: This option defines whether the persistent cookie is deleted after a customer logs out.
  • Persist Shopping Cart: This setting defines if you want to save cart data even after the session cookie expires.

When you are done with the configurations, click Save Config.

This is the straight forward method to enable persistent shopping cart in Magento 2. If you have any questions, please don’t hesitate to contact us.

Other Articles: