Getting started

YITH WooCommerce Recently Viewed Products allows you to show the products that your users have recently viewed in a list on the product detail page or through a widget or shortcodes.

The major new feature is that, not only does the plugin store the information of logged-in and non-logged users in a cookie, but the plugin will also store the information of logged-in users in the database.

In this way, when users log to the site, the cookie will be deleted and their information stored in the database. Doing so users will always be able to see their recently viewed products regardless of the browser used, as the system will get this information directly from the database (and not from a cookie).

General settings

Let’s start from the General settings that you can find in YITH > Recently Viewed Products > Settings.

General settings

  • Set cookie time: set the duration (days) of the cookie that tracks customer viewed products.
  • Select which products to show: choose to show only viewed products or include similar products. By selecting Viewed products and similar items, you will be able to choose to get similar products by categories, tags or both.
  • Set how many products to show: enter the number of products to show and how many of them to show in each row.

General settings 2

  • Order products by: show in which order to display the products: random, latest viewed, sales, newest, price > high to low, price > low to high.
  • Set which products to hide: choose if you want to hide out-of-stock products, free products and/or products already purchased by the customer.
  • Show only products from the most viewed category: enable to show only products of the most viewed category.

From the General settings, you can also enable and configure a slider to show the recently viewed products.

Slider settings

  • Enable products slider: enable to show the product list section as a slider.
  • Enable products slider autoplay: enable to activate the autoplay for sliders.
  • Show dot indicators: enable to show dot indicators for sliders.
  • Show shortcode in all product pages: enable to add the shortcode in the single product page automatically.

Texts and labels

In the Texts and Labels section, you can customize the text for the message, the section title and the link to view the recently viewed list.

Text and label options

  • Text for no product found: enter the message to show when users open the page without any viewed product and, as a consequence, the list is empty (see the example below).

Product not found

  • Section title: text shown above the section of the recently viewed products (see the example below).
  • Text for “View All” link: link text that redirects users to the “Recently Viewed Products” page (see the example below).

Section title and View all link

Recently viewed products page

The page of the recently viewed products will be created automatically when the plugin is activated. It offers users the complete list of the recently viewed products, in addition to the freedom to filter them by category.

Recently viewed products page

Each product can be removed from the list with a simple click on the X Remove button available on the page.

Remove products from the list

Email settings

You can send an email to the users that have not logged into the website for a specific number of days. The email includes the recently viewed products, in addition to other products the administrator can select manually. In order to make this function work, it is necessary to enable the email notification.

Email settings

Let’s analyze all the available options:

  • Schedule email: set how many days have to pass since the last user login to send the email.
  • Number of products: the number of recently viewed products you want to show in the email.
  • Select which products to show: which type of products you want to add to the email choosing from similar products or only viewed products.

Email settings 2

  • Order products by: show in which order display the products: random, sales, newest, price (high to low or low to high).
  • Show only products from the most viewed category: enable if you only want to show the products of the category most viewed by the user.
  • Add also custom products: enable to select additional products to promote in the email.
  • Select custom products: (the conditional option that shows by enabling Add also custom products) choose the products to promote in the email.

 

Email customization

To customize the emails sent to users and remind them of the products they are interested in, you can use the set of available options:

Email customization

  • Logo image: image for email header. You can upload your own image or use the placeholder.
  • Email heading: text for the email heading. You can use one of the available placeholders.
  • Email subject: text for the email subject. You can use one of the available placeholders.
  • Email format: format for the email. You can choose from Plain, HTML, Multipart.

Email customization 2

  • Email content: write your own text or use the default one.
  • Thumbnail Size: product image size (in px). Note: Regenerate the thumbnails of your products to have them correctly implemented by the plugin.

Mandrill and Google Analytics

  • Enable Mandrill: enable to authorize Mandrill to send emails adding the API KEY of your account.
  • Add Google Analytics to email links: enable to add Google Analytics parameters to the email links.
  • Send a test email to: field to insert the email address to send a test email.

Coupon

To encourage your users to purchase the products they are interested in, you can attach a coupon code to the emails sent. When applied, the coupon will grant a discount on the first product added to cart among the suggested ones.

You can either choose to use an existing coupon that you’ve previously created or to generate a new one dynamically.

  1. Use an existing coupon:

Use an existing coupon

The coupon code will automatically be added to your email content.
Please, note: you must have created the coupon code before, otherwise, it will not be printed out in the email content.

2. Create a coupon:

Coupon

Once you have set the discount percentage and expiration date of the coupon, add the “{coupon_code}” placeholder in the email to give users the coupon. Don’t forget to save your changes, otherwise, you will lose everything.

Email sample

Coupon email

Gutenberg

The plugin is ready to use with the new Gutenberg editor. When you add a new post or page, you will be able to find our YITH shortcodes and widgets. With a simple click they will be added to your page.

recently viewed gutenberg

Shortcodes

Recently viewed products

With Recently Viewed Products you can dynamically create unlimited shortcodes using the settings you prefer to show users the list of their recently viewed products.

Shortcode for recently viewed

For example, you can choose to show 10 recently viewed products in columns of three items, sort them by price, sales, randomly, etc., with or without a slider.

The shortcode will be available in the lower part of the page: you will just have to copy it and use it on the page you want.

Shortcode 1

Most viewed products

Through the shortcode [yith_most_viewed_products], you can show a list of all most viewed products of your store and filter products shown by category as well. This list will not only show products visited by you but by other users as well.

Most viewed shortcode

 

The parameters of the shortcode are the following:

num_post=: the whole number that defines the products to show
num_columns=: the whole number that defines the number of columns on which show products
title=: shortcode title
slider=: values: yes or no to define whether the shortcode must be a slider or not
autoplay=: values: yes or no to define whether the slider autoplay must be enabled or not
class=: additional classes for the shortcode
cats_id=: list of category IDs, comma-separated. It allows showing only the products belonging to the specified categories
dots=: values: yes or no to define whether dot indicators must show or not.

Widgets

The YITH WooCommerce Recently Viewed Products widget adds a recently viewed products list in the sidebar. In addition to these products, you can also add similar products by categories and tags.

widget0

What it will look like on the frontend.

Widget