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.
The sharing of each product generate a coupon of the 10% off on that particular product, once added to cart.
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 Facebook, Twitter, 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.
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.
If the creation of the application was successful you will be redirected to a page like the one shown in the following image.
Then click on “Add Platform”, select “Website” and insert your site URL.
Now go to the “App Review” section and ensure the application is public.
The last step is to copy the APP ID and paste it into the plugin settings dashboard.
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.
Go to https://apps.twitter.com/ and click on the “Create new app” button.
Complete the required fields and insert in “Callback url” one of the two options suggested in YITH Plugins -> Share for Discounts -> Settings -> Twitter
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.
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.
If the process ended well, now your users could start sharing your contents via Twitter in order to get the discount you provided.