How to set Magento 2 recently viewed products?

Recently viewed products widget allows you to make shopping process at your store easier for customers. To show recently viewed products on specific pages, you don't need a 3rd-party Magento extension. Just set up an additional widget in the Admin Panel.

How to display recently viewed products on definite pages in Magento 2?

To show recently viewed products on your frontend, use Magento 2 Widgets settings. For this, go to:

  • the Admin Panel>Content>Widgets:

content-widgets-magento

  • Click the Add Widget button to create a new widget instance:

add-widget-magento

  • Make the next settings: 

Type: Recently Viewed Products;
Design Theme: choose the theme, which is in use on your website:

widget-settings-magento

Click Continue.

  • Then you’ll be switched to the Storefront Properties setting:

storefront-properties-magento

  • Continue with the settings:

Widget Title: give a title for the widget instance;
Assign to Store Views: select All Store Views;
Configure the instances order within one container, use the Sort Order field. E.g.: 1,2,3;
In the Layout Updates section choose to Add Layout Update;
From the Display on drop-down menu select Generic Pages>Specified Page:

specified-page-magento

You can choose any option you actually need here.

  • Select Page and Container from the drop-down options:

page-dropdown-magento

container-dropdown-magento

  • As soon as you select one of the containers, you’ll see Template drop-down options. Select the one you need:

layout-updates-magento

  • Switch to Widget Options settings to add the number of products to display:

widget-options-magento

  • Click Save and Flush Magento Cache.

By way of example, we applied the next settings:
E.g.:
Page: Catalog Product View (Any);
Container: Main Content Area;
Template: Viewed Product List Template.
Let’s see what we have:

widget-grid-magento

The new ‘example’ widget appeared on the Widget Grid and on the frontend:

frontend-widget-magento

Use the Magento 2 Frequently Bought Together extension to help your visitors make their purchase decision faster.

You can show Magento recently viewed products with the extension called Elastic Search. It will allow you to show such products in the popup to increase the probability that customers will add the shown product to the cart.

See also: how to display the collection of the most viewed products on Magento 2 frontend → 

How can we help you?

Didn’t you find the answer to your question? We are always happy to help you out.

© 2009-2024 Amasty. All Rights Reserved.