How to Show Recently Viewed Products in Magento 2
E-commerce stores face fierce competition and therefore do not leave any stones unturned to offer the best shopping experience and services.
Magento 2 stores are no exception and hence I’ve come up with a tactic that has proved effective for enhancing the shopping experience. Implement the below method to show recently viewed products in Magento 2 and make it easy for customers to find their interested products.
The feature to display recently viewed products in Magento 2 store help customers find the products they might have viewed and kept the purchase on hold due to some reasons. Also, they might want to compare the previously viewed products with new products to make a purchase decision. Whatever the reasons may be, searching those products from category page or browsing through the store can be irritating. Hence make it easy for them with the feature to display previously viewed products in Magento 2 store!
The widget settings are to be configured in order to show recently viewed products in Magento 2. Check the stepwise method for the same.
Method to Show Recently Viewed Products in Magento 2 Pages:
- Navigate to Admin Panel > Content > Widgets.
- Create a new widget instance with the “Add Widget” button.
- Select the Type and Design Theme from the drop-down in Settings for the widget.
- Click Continue.
- Once redirected to StoreFront Properties, name the widget instance title, assign the store views and enter the sort order.
- Moving forward to Layout Updates, select the page and container from the drop-down options.
- Select the page
- Select the container
- Navigate to Admin Panel > Content > Widgets > Widget Options under widget.
- Enter the number of products and select its attributes to be shown. Also, choose the buttons to be displayed in the frontend for the widget.
- Save the configuration and Flush Magento Cache.
- The Recently Viewed Products widget is added as shown here:
Following the above steps, you’d be able to show recently viewed products in Magento 2 store for your customers! Enhance the shopping experience and hence improve sales.
The above method is easy to follow. However, any doubts regarding this widget can be posted in the comments section and I’d be happy to solve them. You can also try the programmatic method to display recently viewed products in Magento 2.
Thank You.
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
2 Comments
I have enabled this but the widget is coming top of the product detail page how i can bring it down? Sort order not working.
Please change the container option and check.
Thank you.