Increase sales and build customer loyalty by rewarding customers
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
includes
languages
edd-purchase-rewards.php
readme.txt

readme.txt

=== EDD Purchase Rewards ===
Contributors: sumobi
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EFUPMPEZPGW7L
Tags: easy digital downloads, digital downloads, e-downloads, edd, sumobi, purchase, e-commerce
Requires at least: 3.8
Tested up to: 4.1
Stable tag: 1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Increase sales and build customer loyalty by rewarding customers

== Description ==

This plugin requires [Easy Digital Downloads](http://wordpress.org/extend/plugins/easy-digital-downloads/ "Easy Digital Downloads"). 

EDD Purchase Rewards allows a site owner to reward customers who purchase with a discount code. This will not only lead to repeat sales by the customer, but build customer loyalty. 

The discount code can either be a preselected discount code that you create, or you can choose to automatically generate a unique, one-time use discount code (percentage or flat rate).

A minimum purchase amount can be set, and you can also force the customer to share to at least 1 social network before the discount is given to them. The discount code is shown on the purchase confirmation page but can be optionally emailed to the customer.

**Features**:

1. Offer a discount code to your customer for purchasing
1. Force the customer to share to at least 1 social network before receiving their reward
1. Set a minimum purchase amount before the customer receives the discount
1. Select between an existing discount code, or auto generate one, flat or percentage
1. Choose to send the discount to the customer via email
1. Show the customer their available discount codes via the [edd_purchase_rewards_discounts] shortcode
1. Customize the reward email
1. Customize the twitter message
1. Customize the default sharing title
1. Customize the default sharing message
1. Customize the reward title
1. Customize the reward message
1. Customize the reward sharing title
1. Customize the reward sharing message
1. Customize the reward sharing thanks title
1. Customize the reward sharing thanks message

**Want more free EDD plugins?**

To fund ongoing development of more [free EDD plugins](http://profiles.wordpress.org/sumobi#content-plugins), I would greatly appreciate any of the below:

1. [Buy one of my commercial EDD plugins](https://easydigitaldownloads.com/blog/author/andrewmunro/?ref=166 "Buy one of my commercial EDD plugins")

1. [Use my referral code when you purchase your next EDD plugin](https://easydigitaldownloads.com/extensions/?ref=166 "Use my referral code when you purchase your next EDD plugin")

1. [Donate via PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EFUPMPEZPGW7L "Donate via PayPal")

**Plugins for Easy Digital Downloads**

[https://easydigitaldownloads.com/extensions/](https://easydigitaldownloads.com/extensions/?ref=166 "Plugins for Easy Digital Downloads")

**Tips for Easy Digital Downloads**

[http://sumobi.com/blog](http://sumobi.com/blog "Tips for Easy Digital Downloads")

**Stay up to date**

*Follow me on Twitter* 

[http://twitter.com/sumobi_](http://twitter.com/sumobi_ "Twitter")

*Become a fan on Facebook* 

[http://www.facebook.com/sumobicom](http://www.facebook.com/sumobicom "Facebook")

== Installation ==

1. Unpack the entire contents of this plugin zip file into your `wp-content/plugins/` folder locally
1. Upload to your site
1. Navigate to `wp-admin/plugins.php` on your site (your WP Admin plugin page)
1. Activate this plugin
1. Configure the options from Downloads → Settings → Extensions

OR you can just install it with WordPress by going to Plugins >> Add New >> and type this plugin's name

== Screenshots ==

1. Force customers to share for a specified percentage or flat rate
1. As soon as the customers have shared, they are rewarded with a discount code. This can be a discount code you've already made, or choose to create one on the spot
1. The one-time use, unique discount code is created just for the customer
1. A payment note is recorded showing the discount code that was stored against the purchase

== Upgrade Notice ==

= 1.1 =
Now sends the discount with a beautiful email, new filters for developers, minor bug fix and various tweaks 

= 1.1 =

New: Passed more variables to the edd_purchase_rewards_show_reward filter, making it easier to customize what is shown on the purchase confirmation page.

New: Added edd_purchase_rewards_show_discount_code filter for hiding the discount on the purchase confirmation page.

New: Discount email is now sent using EDD's new email class.

New: The Reward Email textarea has been replaced with a WP Editor field

New: Added an edd_purchase_rewards_email_subject filter for changing the email's subject line.

New: Added an edd_purchase_rewards_email_heading filter for changing the email's main heading.

Fix: Fixed an issue where the last purchase reward in the EDD purchase session was shown on each of the purchase history pages. Now only the very last reward will show on the main purchase confirmation page. 

Tweak: Changed instances of edd_get_option( 'success_page' ) to the edd_is_success_page helper function.

Tweak: Various formatting and code cleanup enhancements.

Tweak: Removed {site_url} from default email since EDD's new emails include this by default in the email footer

== Changelog ==

= 1.0.6 =
Fix: Plugin deactivating when EDD was updated.

= 1.0.5 =
Fix: When "Force Share For Discount Reward" was not enabled the sharing script loaded onto other pages. This caused a conflict with EDD Social Discounts.

= 1.0.4 =
Fix: Previous check added for v1.0.2 never actually made it into plugin update.

= 1.0.3 =
Tweak: Changed size of heading to h4. You can also modify this through the edd_purchase_rewards_show_discounts_heading filter

= 1.0.2 =
New: [edd_purchase_rewards_discounts] for showing customer's their available discount codes
Fix: Discount code not being generated in some instances with PayPal. Thanks to Carsten Scheuer (mirozoo)
Tweak: Added additional check before outputting the reward

= 1.0.1 =
New: German language files. Thanks to Carsten Scheuer (mirozoo)
Fix: Typo on settings page. Thanks to Carsten Scheuer (mirozoo)

= 1.0 =
* Initial release