General notes

The free version of YITH WooCommerce Share for Discounts lets you activate the sharing of each product of your shop on Facebook, Twitter and Google+ profiles. In order to do that, you just have to activate the related options from the settings panel of the plugin.

In order to let the plugin work fine, it is essential to enable coupons in WooCommerce settings panel.

general2

The sharing of each product generate a coupon of the 10% off on that particular product, once added to cart.

general3

general4

You can share the same product more than once only after 24 hours have passed.

For the correct functioning of the plugin, it is essential to create an application for each social network you use.

An authorized application is a required procedure in accordance with FacebookTwitter, and LinkedIn privacy policies and is necessary to interact with the social networks.

It is also indispensable when used with YITH WooCommerce Share for Discounts to verify the content sharing.

Facebook

Regarding Facebook, you need to add the “App ID” code that you can obtain creating a new application on Facebook developers. Login with your account and click on the Add new app entry.

free5Fill in the form with the required information.

free6

If the creation of the application was successful you will be redirected to a page like the one shown in the following image.

share7Now click on “Settings” (that you find in the side menu of the page) and fill in the “Namespace” field with a name to identify the application.

Then click on “Add Platform”, select “Website” and insert your site URL.

share9

share10

Now go to the “App Review” section and ensure the application is public.

share11

The last step is to copy the APP ID and paste it into the plugin settings dashboard.

shareappid

Twitter

Configure Twitter application

In order to share via Twitter, it is essential to configure a new application for the required parameters in the plugin settings dashboard.

enable twitter

Go to https://apps.twitter.com/ and click on the “Create new app” button.

Screen Shot 2018-06-15 at 14.22.47

Complete the required fields and insert in “Callback url” one of the two options suggested in YITH Plugins -> Share for Discounts -> Settings -> Twitter

callback url

create an application

After creating the application, go to the “Keys and Access Tokens” section to recover the required parameters, that is “Twitter Consumer Key” and “Twitter Consumer Secret”.
Copy and paste them in the related options of the plugin.

api key

the last step is to click on the “Create my access token” button that you find at the bottom of “Keys and Access Tokens” Twitter section.

token actions

If the process ended well, now your users could start sharing your contents via Twitter in order to get the discount you provided.

final tweet