How to Add Recently Viewed Products in WooCommerce

Shoppers often look at several products before they buy, then lose track of the ones that caught their eye.

Adding a recently viewed products section to your product pages is a subtle but effective way of boosting the conversion rate of your WooCommerce store.

WooCommerce doesn't include a built-in way to show a customizable recently viewed products section on your product pages, so you'll need a third-party tool to add one. 

In this tutorial, I'll show you how to use a powerful WooCommerce plugin called Merchant Pro to add a recently viewed products section to your product pages. 

Let’s get started.

What is a recently viewed products section?

A recently viewed products section automatically shows shoppers the products they've looked at during their visit, usually below the main product on a product page. It helps people pick up where they left off, compare options, and find their way back to items they were interested in, which can lift conversions. WooCommerce doesn't include a flexible version of this on product pages, so you add one with a plugin.

What you'll need

To follow this tutorial, you'll need:

  • A WordPress site with WooCommerce installed and active
  • Merchant Pro (Recently Viewed Products is a Pro module)
  • A few published products to view and test with

This guide was tested with Merchant 2.2.8. The steps are the same on any well-built WooCommerce theme.

1. Install and activate the Merchant Pro plugin

Merchant Pro offers 40+ modules for WooCommerce, including sticky add to cart, free gifts, wishlists, trust badges, product videos, and many more. 

It also comes with a Recently Viewed Products module, the subject of this article.

By purchasing Merchant Pro, you get access to all the modules.

If you're not ready to buy yet, you can also follow this tutorial by spinning up a live Merchant Pro demo, in this case, you can start at Step 2.

Once you've purchased Merchant Pro, download it from either your aThemes account or the purchase welcome email to your computer. 

Then, open your WordPress dashboard and install and activate the plugin on your WooCommerce store by going to Plugins → Add New → Upload Plugin → Choose File → Install Now → Activate:

installing merchant pro plugin in woocommerce

You can refer to our quick start guide for more on getting set up with Merchant Pro.

2. Enable the Recently Viewed Products module 

After installing Merchant Pro, you should see a Merchant menu item appear in the left sidebar of your WordPress admin area. Click it to open your Merchant dashboard.

Then, scroll down to the Convert More section and open the Recently Viewed Products module:

recently viewed products module merchant

On the admin page of the module, click the Enable button to activate the module:

Enabling recently viewed products module merchant

The Recently Viewed Products module should appear underneath the product on each individual product page in your WooCommerce store.

If you can’t find it, that’s because you haven’t viewed any products recently. Open a few products, then check it out again:

recently viewed products on product page

3. Configure the Recently Viewed Products module

You can keep the default text and design of the Recently Viewed Products section or modify it to match your brand’s design.

Here’s how:

Open the module's admin page and navigate to the Settings section where you can change the text, color, and HTML tag of the title in the Recently Viewed Products section to better match your site's design. 

You can also use the Slider style toggle to display the products as a slider instead of the default product grid:

Recently viewed products merchant settings

Merchant Pro lets you modify the number of columns and products in the Recently Viewed Products section. The gap between each column can be increased or decreased, too.

Plus, you can decide whether you want to show the products in descending or ascending order and whether you want to order them randomly or by product ID, title, date, modified date, or menu order. 

There's also a Loading priority option where you can hook the module into a specific location on the page. This can be useful if your theme or one of your plugins loads content to the same location as the Recently Viewed Products module (by setting the loading priority, you can decide which one you want to show first).

Note, however, that this is a developer setting, so only use it if you know how hooks work in WordPress. Otherwise, we recommend keeping the loading priority as the default value (20).

After configuring the settings of the Recently Viewed Products module, be sure you click the Save button located on top of the page to save your new configurations before exiting the page:

Save button on the admin page of Merchant Pro's Recently Viewed Products module

And that’s it. You have now added a recently viewed products section to your WooCommerce store. 

Troubleshooting common issues

If the recently viewed products section doesn't appear the way you expect, check these first:

  • The section is empty: It only shows products you've viewed in the current session. Open a few products, then reload the page.
  • It still doesn't show with caching on: Page caching can hide session-based content like this. Exclude the product page from cache, or test in an incognito window to confirm the module works.
  • It appears in the wrong place: Use the Loading priority setting to move the section. It hooks into a specific spot on the page, so only change it if you're comfortable with WordPress hooks.

Video walkthrough

Check out the video below for a live demo of the Recently Viewed Products module:

Does WooCommerce show recently viewed products by default?

WooCommerce includes a basic recently viewed products widget for sidebars, but it offers little control over where it appears or how it looks. For a customizable section on your product pages, you need a plugin like Merchant Pro.

Is the Recently Viewed Products module free in Merchant?

No. Recently Viewed Products is a Merchant Pro module. The free Merchant plugin includes 16 other modules, but the recently viewed products section requires Merchant Pro.

Where do recently viewed products appear?

With Merchant Pro, the section appears below the product on each single product page. You can move it with the loading priority setting and show the items as a grid or a slider.

Why is the recently viewed products section not showing?

It only appears once you have viewed products in the current session. Open a few products, then reload. If it still does not show, check your page cache, since caching can hide session-based content.

Can I show recently viewed products as a slider?

Yes. In the module Settings, turn on the Slider style toggle to display the products as a carousel instead of the default grid. You can also set the number of columns and products.

Wrapping up

You only need to follow three simple steps to add a customizable recently viewed products section to your product pages without writing any code using Merchant Pro:

  1. Install and activate the Merchant Pro plugin.
  2. Enable the Recently Viewed Products module.
  3. Configure the module to suit your brand’s design and messaging.

Start growing your WooCommerce store today by giving Merchant Pro a try.

Do you have any questions or suggestions about adding recently viewed products in WooCommerce? Let us know in the comments section below.

author avatar
Sufia Banu
Sufia Banu is a freelance content writer with a background in marketing and SEO. She specializes in writing about WordPress, plugins, themes, and WooCommerce. Through her writing, she helps WordPress businesses draw targeted traffic and generate higher sales.

Leave a Reply

Your email address will not be published. Required fields are marked *