An Overview of Persistent Cart in Magento 2

A Persistent Cart is a tool provided by Magento 2, which is one of the most popular platforms used by e-commerce businesses. Once this tool is enabled by admin in the backend, it will keep tracks of items that are added to cart but have not been purchased by customers. The information saved will be shown up in the next time that customer shopping on your store. In other words, a “remembered” customer can have their previous buying activities stored and be available for the next visit.

From a store owner point of view, a Persistent Cart can help to bring better shopping experiences to your customers, improve your brand image and gain more loyal customers to your store. Moreover, a persistent shopping cart can minimize the number of empty carts, which results in an increase in sales.

When the Persistent Cart is activated, registered customers are required to log in with their own accounts before going through checkout. For guest shoppers, they need to sign up with new account if they want to recover information from their last shopping.

In order to use the Persistent Cart, customers have to enable two cookies for their browsers. During the operation, these following two cookies are required:

  • Session Cookie: Is a short-term cookie. Its duration is only a single customer visit to your site. In other words, the cookies starts when a customer logs in and expires when that customer leaves.
  • Persistent Cookie: Is a long-term cookie. Unlike Session Cookie, Persistent Cookie remains functioning even when customers leave the store. This cookie also allow to record the contents of customers’ shopping activities for future reference. Persistent Cookie duration can be set to a period of time depending on your preference, but the maximum is 31,536,000 seconds (this number is equal to one year) set by default Magento 2.

Up to now, you may have a clear overview of Persistent Cart used in Magento 2. Don’t forget to Like, Share, and Subscribe to Magestandard for more informative Magento extension review articles.

An Overview of Data Validation in Magento 2

What is Data Validation in Magento 2?

 

Data Validation in Magento 2 which can be understood as the checking process for all data before importing into store is completed to assure that the values are appropriate for the system database. To start Data Validation, in the admin homepage, click System, choose Import under Data Transfer, after that, Import field appears with Check Data button in upper-right corner, tap on that button and Validation is begun. During the process, all objects in the import file have to undergo five following checking factors:

Attributes

The value of particular attribute has to be suitable with all of the requirements of the data type and column header match the equivalent attributes in the system database.

Complex Data

Verify values contained in a set, such as multiple select input or drop-down type to ensure that all of them are defined.

Service Data

In service data columns, the values have to be persistent with standard in the system database.

Required Values

As for new objects, Data Validation does check the existence of required attribute values in the file but does not need to do with existing entities.

Separators

Data values in a CSV file are decided by comma, and text values are put inside double-quotes. Verify separators and sets of quotes that insert character series to make sure that all of them are correctly formatted.

Validation Result

After checking process, the result appears with three information below:

  • The number of objects verified
  • The number of invalid rows
  • The number of errors found

If the data is valid, you will see  “Import Success” message displays.

If the data is not valid, the description of each error comes out, please read and fix the problem in import file to reach a valid database.

Appearance of Data Validation Messages in Magento 2

Data ValidationSuccess Import Message

Data ValidationSome errors of CSV import file

We have presented about Data Validation in Magento 2. We hope that this article can show you useful information to select the appropriate extension for your online shop. If you find it helpful for you, please Like, Share and Subscribe to keep updating for more upcoming blogs!

 

How Persistent Cart Works in Magento 2

In Magento 2, the Persistent Shopping Cart does not necessarily follow a solid workflow. In other words, it depends on the value in the backend settings. For each value set to the “Enable Remember Me” and the “Clear Persistence on Logout” fields, the Persistent Cart works in a different way. It also depends on the admin’s decision to select or clear the “Remember Me” checkbox.

When a persistent cookie is activated, a “Not%[the last user’s name]%?” link (Not %John Smith%? for example) will appear in the top of the current page. The function of that link is to give customers options to close the persistent session and start working as a guest or to log in with another account. In addition, the persistent cookie has impact on the workflow of persistent shopping cart. Because it helps to maintain settings for the Shopping Cart, Wish List, Recently Ordered Items, Currently Compared Products, Comparison History, Recently Viewed Products, and Customer Group associations.

The system can also keep tracks of the shopping cart contents, no matter which devices your customers use to shop. For instance, at first, a shopper uses a laptop to add items to her cart. She then can edit the cart contents from a mobile device, and complete the checkout process from a tablet or a desktop computer.

Your store can create and maintain an independent persistent cookie for each browser that is used by a customer to log in or create an account once the persistent shopping cart is applied. Thanks to the persistent cookie, any changes made will be updated to browsers even if the customer use more than one browser for one time shopping on your store.

There are four common effects on the persistent shopping cart workflow, which depends on the settings below:

Situation 1: Enable Remember Me = “No”

Clear Persistence on Log Out = any value

Effects: The Remember Me checkbox is not available when customers on the login and registration pages. The persistent cookie is not applied.

Situation 2: Enable Remember Me = “Yes”

Clear Persistence on Log Out = any value

Remember Me = (not being selected)

Effects: The session cookie is applied as usual; the persistent cookie is not used.

Situation 3: Enable Remember Me = “Yes”

Clear Persistence on Log Out = “Yes”

Remember Me = “Yes”

Effects: Both session and persistent cookies are enabled when customers log in. These two cookies are also terminated when buyers finish shopping and log out. If a customer does not log in, but the session cookie become invalid, the persistent cookie still keep working. If a customer does not log out, the persistent cookie can also be deleted if its lifetime is out of due or if the customer clicks the Not %John Smith% link.

Situation 4: Enable Remember Me = “Yes”

Clear Persistence on Log Out = “No”

Remember Me = “Yes”

Effects: Both cookies are used when customers log in. When shoppers log out, only session cookie is closed. Persistent cookie is deleted only when its lifetime runs out or when the buyer click the Not %John Smith% link.

Clearly understand how Persistent Shopping Cart works with different values set to it will help you a lot in managing your online store. Therefore, come back to the beginning and read again this article if you still confuse about Persistent Shopping Cart workflow. If not, keep follow us to receive more instructions about Persistent Shopping Cart in Magento 2.

How to Configure Cart Thumbnails in Magento 2

Cart Thumbnails are small images that appear in the cart when customers shopping online. These undersized pictures help to give online buyers an overview of the product they are about to spend money on. If a customer buys a simple product with specific color, then ideally, the Cart Thumbnails should match that product.
thumbnail-images

However, the thumbnails do not always show exactly what the product is (in terms of size, color, or length). In other words, it is impossible to display all the variations of a configurable or grouped product which have multiple options to choose. For these two types, Magento 2 allows admin to select the Cart Thumbnails images from either their “parent” products or from the product variation.

To configure Cart Thumbnails images for Configurable and Grouped products in the current store view, do the following:

  1. Firstly, sign in with your admin account. On the Admin sidebar, select Stores.
  2. Choose Configuration under Settings.
  3. Expand Sale on the left panel, then click Checkout.
  4. Click the drop-down icon in the Shopping Cart section. Now you can do the settings:
  • Grouped Product Image: Set it to “Parent Product Thumbnail” if you want the thumbnail image for grouped products to be selected from parent product. Set it to “Product Thumbnail Itself” otherwise.
  • Configurable Product Image: Select the “Parent Product Thumbnail” option if you want the thumbnail image for configurable products to be selected from parent product. Otherwise, select the “Product Thumbnail Itself” option.Configure Cart Thumbnails
  1. When you finish the settings, tap Save Config (on the upper-right corner of your working screen) to save changes.

You may need to refresh the caches by clicking the Cache Management link when the system note appears.system-note Cart Thumbnails

Now, go to your store’s backend and see what you can do with thumbnail images for your products to improve your customer’s shopping experience.

We have presented Cart Thumbnails in Magento 2. We hope that this article can show you useful information to select the appropriate extension for your online shop. Don’t forget to Like, Share, and Subscribe to Magestandard for more informative Magento extension review articles.