FAQs

Index of FAQs

  • How do I setup the favorite products feature on my site? (see here)
  • Can we require visitors to login / register to create their favorite list? (see here)

How do I setup the favorites feature on my site?

Please follow these 4 quick and easy steps to setup the favorite feature on your site:

(1) Add the favorite button to your table

In your product table's settings > columns > add the Favorite element to any column where you want to show the Add to Favorite button. This will print the Add to Favorite button in the product table on your site. Now your site visitors will be able to create a list of favorite products.

(2) Add the favorites page to your site

Create a new page on your site, give it the title Favorites and enter in it a product table shortcode along with the shortcode option favorite="true"

[product_table id="123" favorite="true"]

This page will be used to show the favorite products for your site users.

Please note the URL of this page. We will use it in the next step.

(3) Add the favorite count widget to your site

In wp admin > appearance > widgets > locate the sidebar widget area and add this shortcode to it:

[wcpt_favorite_count text="Favorites:" url="*favorite products page url*"]

In the above shortcode you need to replace url="*favorite products page url*" with the url of the favorite page we noted in step 2.

This shortcode has multiple options for modifying the appearance of the Favorite count widget on the site front end. Please see below the list of options for this shortcode:

  • url= "*favorite products page url*"
  • text="Favorites: " (optional text in the widget)
  • icon="heart" See complete list of icons here
  • font_size="18" (font size of the text and icon)
  • color="black" (color of the text and icon)
  • hover_text="Favorite items" (text that shows up on mouse hover)

(4) Modify single product page favorite button

The favorite products addon also adds a favorite button to your single product pages. You can modify it by going to wp admin > product tables > settings > favorite products > single product page. You can change the text, icon and styling for the button.


Can we require visitors to login / register to create their favorite list?

Yes you can require visitors to login before allowing them create a favorite list.

Go to wp admin > product tables > settings > favorite products > Login required to create favorite list > select the option: Yes, visitor must login to create favorites list.

Please see reference screenshot below: