# Purchase Rewards

 The [ EDD Purchase Rewards](https://easydigitaldownloads.com/downloads/edd-purchase-rewards/) extension for Easy Digital Downloads allows store owners to give a coupon code to a customer as a reward for making a purchase. That reward can be a percentage off, or a flat fee discount on a future purchase.

 **Note:** If using with our [Free Downloads](https://easydigitaldownloads.com/downloads/free-downloads/) extension and the &quot;Auto Handler&quot; option is set to &quot;Auto Download&quot;, be sure to enable &quot;Email Discount Code to Customer&quot;. The customer will not reach the Purchase Confirmation page to receive the discount code if the &quot;Auto Download&quot; option is chosen in the Free Downloads settings area.

###  Setup

 After you have [installed and activated](https://easydigitaldownloads.com/docs/how-do-i-install-an-extension/) the Purchase Rewards extension, you can find the settings area by navigating to ***Downloads → Settings → Extensions***.

 ![](https://easydigitaldownloads.com/wp-content/uploads/2022/07/6184cd9713e16.png)

 **Minimum Purchase Amount:** This would require that the customer spend a certain amount of money on a single transaction before the reward would be given. If you leave it blank then there is no minimum. If you choose to set a minimum, put in ***only*** the number, not any currency symbol.

 **Discount Code:** If you&#039;d like to offer an existing discount code, select it from the dropdown menu. Note: If you choose an existing Discount Code then all of its rules apply. [Full documentation on Discount Codes here](https://easydigitaldownloads.com/docs/discount-codes/).

 **Create Discount Code:** If you don&#039;t wish to use an existing discount code, you can set one that will be created on the fly as a one-time use code for each customer. Simply click the &quot;Create Discount Code&quot; checkbox and then proceed to the options below it.

 **Discount Type:** Your new discount can either be a percentage off or a flat rate.

 **Discount Amount:** This value is a number that will be either a percentage or a flat value, depending on what was selected for Discount Type.

 **Enable Purchase Sharing:** This will display the sharing icons, regardless of whether the customer must share their purchase for a reward.

 **Force Share For Discount Reward:** This requires that the customer must share their purchase to at least 1 social network before a reward is given. If &quot;Enable Purchase Sharing&quot; is not enabled above, it will only show the sharing icons when needed.

 **Email Discount Code To Customer:** If this option is checked then the discount code will be emailed to the address provided by the customer.

 Also provided is a rich text area in which to create the email that will be sent to the customer.

 ![](https://easydigitaldownloads.com/wp-content/uploads/2022/07/6184cd977390d.png)

 Template tag options for this text area are:

- {name} - The customer&#039;s name
- {discount\_code} - The discount code the customer is receiving
- {site\_name} - Your site name
- {site\_url} - Your site&#039;s URL

  ****Twitter Message:** This is the text that will be included in the &quot;Share Tweet&quot; if the share icons are enabled. It automatically includes the URL of the site so you don&#039;t need to include it. If left blank, no message will be included.**

 **Twitter Username:** This is the username that you want the Twitter &quot;Follow&quot; button to use. If blank the button is disabled.

 **Default Sharing Title:** This text appears above the sharing buttons on the purchase confirmation page. The default is &quot;Share your purchase!&quot;

 **Default Sharing Message:** Message shown when sharing is enabled and no discount is set, or when purchase does not meet reward requirements.

 **Reward Title:** Title shown when purchase meets reward requirements. Default: *You&#039;ve Been Rewarded!*

 **Reward Message:** Message shown when purchase meets reward requirements. Default: *We&#039;d like to offer you a {discount\_amount} discount which you can use on your next purchase:*

 **Reward Sharing Title:** Title shown when sharing is enabled and purchase meets reward requirements Default: *Share for a discount on your next purchase!*

 **Reward Sharing Message:** Message shown when sharing is enabled and purchase meets reward requirements Default: *We&#039;d like to offer you a {discount\_amount} discount which you can use on your next purchase, just for sharing!*

 **Reward Sharing Thanks Title:** Title shown when purchase has met reward requirements and the customer has shared their purchase Default: *Thanks for sharing.*

 **Reward Sharing Thanks Message:** Message shown when purchase has met reward requirements and the customer has shared their purchase. Default: *Here&#039;s your {discount\_amount} discount code*