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.