Getting started with the premium version

YITH WooCommerce Recently Viewed Products allows you to show the recently viewed products of the users in the product detail page or using the related widget and shortcodes.

The major new feature is that, in addition to using the cookie to store the information of logged and non-logged users, the plugin will also store the information of logged users in the database.

In this way, when users log to the site, the cookie will be deleted and its information stored in the database. Doing so will let users 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

The general settings of the plugin are available in the “Settings” tab you can find in YITH Plugins -> Recently Viewed Products.

general title

  • Set cookie time: the number of days in which the cookie will store the information of non-logged users.
  • Section title: text shown above the section of the recently viewed products (see the example below).
  • “View All” link: link text that redirects users to the “Recently Viewed Products” page (see the example below).

general example

General settings with regards to the products:

general product

  • Select which products to show: this option lets you decide to show only recently viewed products, or also similar products that share the same category or tag.
  • Set number of products: number of products to show. Set to -1 to show all products in list.
  • Set products per row: number of products you want to show per row.
  • Products order by: show in which order to display the products: sales, price, publication date, latest viewed, or random.
  • Hide out-of-stock products: hide the products that are momentarily unavailable.
  • Hide free products: hide products that are free.
  • Excluded purchased products: this option will not display the already purchased products in the recently viewed products section.

general options category

  • Only the most viewed category: display only the products of the most viewed category of the user.
  • Enable slider: activate/deactivate the slider mode for products
  • Enable slider autoplay: enable this option if you want the slider to scroll automatically.
  • Add shortcode in single product: option to automatically add the plugin shortcode in the single product page.

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 page

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

If users open the page without any viewed product, the list will be empty. The plugin will show you a message that you can customize from the related option in the options panel of the plugin:

options page

General email settings

general email

  • Schedule email: Set how many days have to pass since the last user login to send the email.
  • Thumbnail size: Set the size of the product images of the email Note: Regenerate the thumbnails of your products to have them correctly implemented by the plugin.
  • Enable Mandrill: Authorize Mandrill to send email adding the API KEY of your account
  • Add Google Analytics to email links: This is an option to add some Google analytics parameters to the links in the email.

For the more specific email settings, take a look at the Email settings chapter.

Email settings

You can send an email to the users that have not logged on the the website since a specific number of days. The email contains 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

  • Subject: write your own subject or use a placeholder.
  • Email heading: write your own or use a placeholder.
  • Logo image: choose your own image or use a placeholder.

email settings content

  • Email type: Choose in which format you want to send the email.
  • Email content: write your own text or use the default text.

email settings product

  • Add custom products: choose random products to add.
  • Number of products: the number of products you want to show in the email.
  • Product type: which type of products you want to add to the email, include similar products or only viewed products.
  • Products ordered by: show in which order to display the products: sales, price, publication date or random
  • Only the most viewed category:  Enable if you only want to display the products of the most viewed category.

Coupon

In order to give your users a coupon, you need to enable a coupon first. Users can benefit from a discount for the first product on the list.

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:Add 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. Generate a new coupon:Create 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.

Example

send test mail

Once configured, you can get a preview by generating a testing email with the related button.

test 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.

 

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.

 shortcode1

 

Most viewed products

Through the shortcode [yith_most_viewed_products], you can show a list of all most viewed products of your store.

shortcode-recently-viewed

The parameters of the shortcode are the following:

num_post=: whole number that defines the products to show
num_columns=: 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
autoplay_speed=: whole value to define the autoplay speed in milliseconds. The default value is 3000
class=: additional classes for the shortcode

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 front end.

voorbeeld widget