Shortcode

Shortcodes

The plugin includes two types of shortcode.

1. Custom comparison table

The first one lets you create comparing tables for specific products of the shop. In order to do it, go to the “Build Shortcode” section of the settings panel of the plugin, and select the products you want to display in the customized table.

compareshortcode

Copy and paste the generated shortcode in the page where you want to show it.

shortcodecompare

 

2. Product Counter

The second one lets you show a counter of the products added to the comparison list so far. The shortcode is:

[yith_woocompare_counter]

It can be added on any page or even in a widget.

This is how it might look like on the Shop page before the products. Product counter - Shortcode

 Widgets

The plugin provides you with two different widgets.

1. Products in the list

The first one shows the list of the products that users have added to the comparison table.

comparewidget

 

2. Product Counter

The second one is a counter of all products added to the comparison list so far.
You can enter a title, choose to show only numbers or both numbers and text.
If want to, you can pick an icon from your Media gallery and customize the text to make it clear to your customers what the counter is for.

Widget settings

Counter on Frontend