1. Home
  2. Knowledge Base
  3. Documentations
  4. Plugins
  5. EDD Envato Customers – Documentation

Here you find all relevant information, instructions and tips for installing, configuring and using the EDD Envato Customers plugin. This site will be kept up2date and offers you a comfortable and smooth start.

Technical requirements

Please ensure that your web hosting meets the following requirements:

  • PHP 5.3 or later
  • MySQL 5.0.3 or later
  • WordPress 3.4 or later (tested up to the current version)
  • PHP curl extension installed

In general the above-mentioned requirements are easily met by all web hosting providers. For a fast Wordpress WebHosting we recommend Bluehost.

Plugin installation

Installation via Uploader

  • Login to your WordPress dashboard
  • Navigate to Plugins and click Add New
  • Click “Upload Plugin”
  • Select the previously downloaded edd-envato-customers.zip file and confirm by clicking Install Now

Installation via FTP

  • Extract the edd-envato-customers.zip file on your computer
  • Upload the edd-envato-customers directory to the /wp-content/plugins/ directory
  • Login to your WordPress dashboard
  • Navigate to Plugins and activate the plugin

That’s it!

Inside the following chapters you learn how to configure and use the plugin correctly.

Configuration and usage

The plugin settings page can be found when navigating as follows: Downloads – Settings – Extensions – EDD Envato Customers.

Settings page
Settings page

Envato API

In order to use this plugin you need an Envato account and a personal API token.

EDD Envato Customers - Creating an Envato API Token

Personal API tokens can be created here.

After logging in to your Envato account you enter the name for the token which can be anything you want. I suggest using a name which allows you to remember the purpose of the created token. In this case we entered “EDD Envato Customers”.

Now you have to check the permissions which will be assigned to this token. Right now EDD Envato Customers only requires “Verify purchases of your items” but in future we might add more functionality that needs more permissions. It’s up to you wether to check only the minimum or maximum.

After creating your API token, please enter it to the text field on the plugin settings page. After a quick validation you receive a message wether they token and permissions are fine or not.

Discount codes

Enable/disable discount code creation
Assuming you want to create discount codes for verified purchase codes please activate the checkbox. In case you want to disable the discount code creation temporarily, you can disable it here globally as well.

Individual discount codes
Individual discounts will be created for every single customer and they are based on a selected discount template. Therefore simply add a new discount code and configure it how you want the individual discount codes to be. We’re support AffiliateWP which allows you to assign an affiliate as well.

The discount code will be named like the template, plus adding the buyers name. e.g.

Template code Final discount code
envato envato-username

Shared discount code
In case you don’t want to create multiple discount codes, a shared discount code may be the best for you! Therefore simply add a new discount code and configure it how you want it to be. After verifying their purchases, all Envato customer will receive the same shared discount code.

Displaying the verification form

In order to display the purchase code verification and discount creation form, you have multiple options.

Shortcodes

Displaying the form inside your posts and page is very simple by using the following shortcodes:

Purchase code verification (and database storage) only

[envato]

 

Purchase code verification and discount creation

[envato discount="true"]

Checkout page

In order to enable purchase code verification and/or discount creation on the checkout page, please select the option via the plugin settings.

User profile edit page

In order to enable purchase code verification and/or discount creation on the user profile edit page, please select the option via the plugin settings.

Show/hide content for/from Envato customers

In case you want to show or hide specific content for/from Envato customers, make use of the prepared shortcodes:

[envato_customer] Here you can display content for Envato customers only.[/envato_customer]

 

[envato_no_customer] Here you can display content for visitors who aren't verified as Envato customers.[/envato_no_customer]

 

Alternatively you can use the following PHP function inside your templates:

if ( edd_envato_customers_is_customer() ) { ... }

Was this article helpful?

Related Articles