Discount for Likes Documentation

Installation

First of all upload the ‘discount-for-likes’ folder/zip the to your wordpress plugin directory and activate it in your Plugins page. If you do not know how do that – just google it. There are a many tutorials that explain how you do that.

 

Configurate “Discount for Likes” for a product

Go to a “Edit Product” administration and in the Product Data panel you need to enable it first. After that a new tab is coming up, where you can set the required likes and the resultant discount.

 

Settings

The settings can be found in the “General” settings of woocommerce. Just scroll down and there is an own “Discount for Likes” section. Here you can enable the Like button and set a custom information next to the price.

Changelog

 

1.0.2 – 8.8.2014

  • The currency position from the settings will be used now

 

1.0.1 – 4.7.2014

  • Transients are now used to store the likes count for every product, this will improve the perfomance of the website, because the likes count do not need to be loaded after every page update
  • Set transient expiration time in the option settings. In other words, the time in seconds when the likes count of a product should be loaded again from facebook
  • Bug fixed: The correct price with the discount were not displayed in the cart