1. Documentation /
  2. Product Likes

Product Likes

Installation

↑ Back to top

Download, install and activate the extension.

It is strongly recommended you initially use a staging/development environment and test the extension before use on a production website.

If you haven’t already, connect your store to your WooCommerce.com account. This ensures you get extension update notifications when available.

Quick start guide

↑ Back to top
  • Perform the installation steps above
  • Go to WooCommerce > Settings > Products > Product likes
  • Configure the settings as required, we recommend using the defaults
  • Once the settings have been saved products throughout your store will shown like buttons as per the settings used
  • Once you have built up a number of likes go to Products > Likes to access the likes dashboard which shows how many likes products/customers have and you can view which products have been liked/which products specific customers have liked

Settings

↑ Back to top

You can access the settings at WooCommerce > Settings > Products > General > Product Likes, it includes several configuration options including enabling like buttons for non-logged in users, my account likes list, display preferences, icon types and more.

Configuration of product likes settings

Display

↑ Back to top

Product like buttons and total likes are shown on the product page and on each product in an archive page (e.g. product category), you can disable the display on either of these areas if needed. You can select the icon type (heart, thumb or none) or choose to remove all styling and style yourself with CSS.

Products on category/search pages showing like buttons
Like button displayed on product page

Dashboard

↑ Back to top

The likes dashboard can be accessed via Products > Likes and shows a list of your products and their likes total. You can click a like total to see which customers/how many guests liked the product. The likes dashboard and be searched/sorted and you can export/print all the data. It also includes a customer totals section which lists all customers, how many likes they’ve made and you can click the total likes to see which products they liked.

Outside of the likes dashboard you can also see the total number of likes in a designated column on the product listings.

Likes dashboard showing all hoodies with likes totals

Technical

↑ Back to top

Non-logged in users

↑ Back to top

For users who aren’t logged in their likes will count towards the product’s like total and their likes will remain visible when they visit your store until their cookie expires or is deleted. You can disable this option if needed via settings.

Post meta

↑ Back to top

This extension stores product post meta with the key _wcpl_product_likes_likes for the total number of likes. This post meta should not be created/updated through the database, import, custom development or by using clone page/post/product plugins (with the exception of using the duplicate link on products in the dashboard product list) as it is related to data stored outside post meta in a database table for each individual like and both should remain in sync. If the post meta is added/updated you may see inconsistencies when attempting to like or unlike products. If you have attempted to create/update this post meta and have issues then you can resync the post meta by logging into your dashboard as an administrator and adding wcpl_product_likes_debug_post_meta=1 to the admin URL and pressing enter e.g. http://example.com/wp-admin/?wcpl_product_likes_debug_post_meta=1

Custom development

↑ Back to top

The following information is provided for custom development purposes for web developers, they are useful if you wish to add custom features or modify how the extension works. As per the WooCommerce support policy we cannot offer any support for your use of these custom development features.

Filter hooks

↑ Back to top
Filter hookDescription
wcpl_product_likes_likes_none_textChange text in my account when no products yet liked
wcpl_product_likes_likes_textChange likes text
wcpl_product_likes_like_textChange like text
wcpl_product_likes_products_alternative_hookReturn false to use default woocommerce_product_meta_start action hook, return true to use woocommerce_after_add_to_cart_form (not recommended) – see display on product pages information in settings for further details
wcpl_product_likes_total_after_textChange text which appears after total likes
wcpl_product_likes_total_before_textChange text which appears before total likes
wcpl_product_likes_unlike_textChange unlike text

Cookies

↑ Back to top

This extension may set the following cookies, it is recommended you include details of these cookies in your cookie policy.

NameDescriptionExpiry
wcpl_product_likesUsed to give a unique ID to a user who isn’t logged in so their likes are remembered until the cookie is removed.30 days

FAQs

↑ Back to top

Is it compatible with a specific theme?

↑ Back to top

This extension will generally be compatible with most themes. There may be a small number of themes that are fully or partially incompatible due to clashes in functionality and/or if the theme has removed or adapted core WooCommerce functionality. If you would like to know if a specific theme will be compatible before purchase then please contact us and we can advise, it may not be possible for us to determine this e.g. if the theme requires a license and/or several configuration steps. In this scenario you are welcome to purchase and test this extension with the theme and if there is a a compatibility issue you can take advantage of the 30 day refund policy for this extension.

Is it compatible with a specific extension/plugin?

↑ Back to top

This extension will generally be compatible with most extensions/plugins. There may be a small number of extensions/plugins that are fully or partially incompatible due to clashes in functionality and/or if the extension/plugin has removed or adapted core WooCommerce functionality. If you would like to know if a specific extension/plugin will be compatible before purchase then please contact us and we can advise, it may not be possible for us to determine this e.g. if the extension/plugin requires a license and/or several configuration steps. In this scenario you are welcome to purchase and test this extension with the other extension/plugin and if there is a a compatibility issue you can take advantage of the 30 day refund policy for this extension.

Is it compatible with a specific page builder?

↑ Back to top

This extension will generally be compatible with most page builders. There may be a small number of page builders that are fully or partially incompatible due to clashes in functionality and/or if the page builder has removed or adapted core WooCommerce functionality. If you would like to know if a specific page builder will be compatible before purchase then please contact us and we can advise, it may not be possible for us to determine this e.g. if the page builder requires a license and/or several configuration steps. In this scenario you are welcome to purchase and test this extension with the page builder and if there is a a compatibility issue you can take advantage of the 30 day refund policy for this extension.

Support

↑ Back to top

If you need any further assistance with this extension please contact us. Please note that extension support does not include providing assistance with any custom development requirements as per the WooCommerce Support Policy.

  • 30-day money-back guarantee
  • Support teams across the world
  • Safe and secure online payment