EDD Pdf Vouchers Setup Docs

“EDD PDF Vouchers” Documentation by “WPWeb”

Introduction

Easy Digital Downloads PDF Vouchers allows you to sell voucher codes that can then be redeemed at a physical location. This is perfect for stores that wish to sell tickets to events, discount codes for on-site pickup, class admission tickets and more. You can give your customers the ability to set a recipient name, email, and message to purchase these vouchers as a gift or for themselves.

With the PDF Vouchers Extension, You can create unlimited vouchers, either for Local Businesses / Local Stores or even online stores.

Features:

  • Easy to setup and use.
  • Connect Your Business and Online Store with Customizable PDF Vouchers.
  • Can be customized for each download.
  • Add a custom Logo to the PDF.
  • Add custom redeem instructions to the PDF.
  • Add unlimited locations to the PDF where the voucher can be redeemed.
  • Allows you to generate unlimited unique codes without the need to provide them.
  • Allow to import codes via csv.
  • Allows to enter voucher codes manually, as comma separated list.
  • Ability to restrict codes to be used only one time.
  • Ability to use codes unlimited times.
  • Detailed report about all purchased voucher codes and used voucher codes.
  • Ability to export a list of all purchased voucher codes as PDF and CSV as well. This includes the complete customer details.
  • Ability to create unlimited voucher templates with Drag & Drop interface.
  • Ability to assign vendor users to voucher product.
  • Send Emails to Vendors when their voucher get sold out.
  • Ability to check voucher code is Valid or not for vendors.
  • Supports using vouchers with variable products. NEW
  • Allow your customers to personalize their vouchers on the store's frontend to create gifts by adding a recipient name and/or message, and use the recipient email field to send the voucher as a gift via email. NEW
  • A clean & user friendly admin UI to manage everything.

Installing the Plugin

  1. The installation of the plugin is just like any other plugin installation for WordPress. Login to your WordPress site and go to Plugins > Add New.
  2. At the Install Plugins Page click on Upload from the top navigation and then click on browse.
  3. Go to the location on your computer where you saved the downloaded plugin zip file and upload this zipped file. You need to unzip the file first to get the plugin zip file.
  4. Now click on Install Now.
  5. Wait until WordPress has uploaded the file. If it's done click on Activate Plugin.
  6. Now you should see a message 'Plugin activated' at the top of the window.

After installing the extension, a Voucher section will be added to the Easy Digital Downloads Extensions tab.

Plugin Settings

The Plugin Settings

Site Logo
Here you can upload a logo of your site. This logo will then be displayed on the Voucher as the Site Logo.

Export PDF File Name
Enter the PDF file name. This file name will be used when generate a PDF of purchased voucher codes. Available template tags are:

  • {current_date} - displays the current date

Export CSV File Name
Enter the CSV file name. This file name will be used when generate a CSV of purchased voucher codes. Available template tags are:

  • {current_date} - displays the current date

Download PDF File Name
Enter the PDF file name. This file name will be used when users download a PDF of purchased voucher codes. Available template tags are:

  • {current_date} - displays the current date

Download Voucher Link Name
Enter the Download Voucher Link name. This name will be used on all pages where download link is shown. The available tags are:

  • {download_name} - displays the download name

PDF Template
Select PDF Template.

Multiple voucher
Check this box if you want to generate 1 pdf for 1 voucher code instead of creating 1 combined pdf for all vouchers.

Characters not displaying correctly?
Check this box to enable the characters support. Only do this if you have characters which do not display correctly (e.g. Greek characters).

Enable Relative Path
Check this box if you want to use a relative path instead of absolute path for loading images in voucher pdf.

Allow Redeem for Expired Vouchers
Check this box if you want to allow redeem voucher codes after expiration date.

Misc Settings

Enable PDF Preview
Check this box if you wanted to preview pdf in browser instead of download pdf.

Vendor Sale Notification Email Template

Disable Notification
Check this box to disable the vendor sale notification email.

Email Subject
Enter the subject line for the vendor sale notification email. Available template tags are:

  • {site_name} - displays the site name
  • {download_title} - displays the download title
  • {voucher_code} - displays the voucher code

Email Body
Enter the vendor email that is sent after completion of a purchase. HTML is accepted. Available template tags:

  • {site_name} - displays the site name
  • {download_title} - displays the download title
  • {voucher_code} - displays the voucher code

Gift Notification Email Template

Disable Notification
Check this box to disable the gift notification email.

Email Subject
Enter the subject line for Gift notification email. Available template tags are:

  • {first_name} - displays the first name of customer
  • {last_name} - displays the last name of customer
  • {recipient_name} - displays the recipient name

Email Body
Enter email that will be sent gift recipient user. HTML is accepted. Available template tags:

  • {first_name} - displays the site name
  • {last_name} - displays the product title
  • {recipient_name} - displays the recipient name
  • {recipient_message} - displays the recipient message
  • {voucher_link} - displays the voucher download link

Metabox Settings

Important: Voucher meta settings will only be appear if product type is default.

Metabox Settings

Enable Voucher Codes
To enable the Voucher for this download check the "Enable Voucher Codes" check box.

Voucher Recipient
Prints a customer-supplied recipient name to the voucher. If you enable Recipient Name, a "recipient" input will be available on the product page for the customer to enter a name.You can optionally enforce a maximum name length if desired, so that the name doesn't overrun on your pdf voucher. You can configure this field as required so a customer must supply a recipient name, or leave it optional.

Recipient Email
This field will automatically be displayed to the purchaser in order to deliver the voucher via email and allows vouchers to be easily purchased as gifts.

Recipient Message
Prints a customer-supplied message to the voucher. If you enable Recipient Message, a "message" input will be available on the product page for the customer to supply a custom message. You can optionally enforce a maximum length if desired, so that the message doesn't overrun on your pdf voucher. You can configure this field as required so a customer must supply a message, or leave it optional.

You can see a demo here:http://demo.wpweb.co.in/edd-pdf-vouchers/downloads/gift-voucher-simple-download/

Enable Template Selection
Check this box if you wanted to allow end users to select pdf template on the product page.

PDF Template
Select a PDF template. Leave it empty to use the template from the settings page.

Vendor User
Please select the vendor user.
Note : It will only list the "Vendor" role users.

Vendor's Logo
Allows you to upload a logo of the vendor for which this Voucher is valid. The logo will also be displayed on the PDF document.

Usability
Choose how you wanted to use vouchers codes.
if you set usability "one time only" then it will automatically set product quantity equal to number of voucher codes entered and it will automatically decrease quanity by 1 when it get purchased. if you set usability "unlimited" then plugin will automatically generate unique voucher codes when product purchased.

Available Voucher Codes
Enter the amount of available voucher codes.

Voucher Codes
If you have a list of voucher codes you can copy and paste them in to this option. Make sure, that they are comma separated.

Generate / Import Codes
Here you can import a csv file with voucher codes or you can enter the prefix and pattern and extension will automatically create the voucher codes. When you click on the button "Generate / Import Codes" the popup would open which will look like as mentioned in image below :

Generate Code Popup

  1. General Settings

    Delete Existing Code :
    Choose option yes if you want to delete existing voucher codes.

  2. Generate Options

    Number of Voucher Codes :
    Enter number of voucher code you want to generate.

    Submission :
    Enter Prefix, Separator and Pattern of voucher code.
    Prefix - Prefix Text to appear before the code.
    Separator - Separator symbol which appear between prefix and code.
    Pattern - Unique pattern for code. You can define a pattern using following characters. L - Letter D - Digit

    Example:

    Generate patten with Capital Letter Generate Voucher Codes LLDD Pattern

    Result: [ "WPWeb-LF88", "WPWeb-BK47", "WPWeb-UZ14", "WPWeb-VI97", "WPWeb-NH48" ]

    Generate patten with Small Letter Generate Voucher Codes llddd Pattern

    Result: [ "WPWeb-vd866", "WPWeb-vp355", "WPWeb-nv302" ]

  3. Import Options

    CSV Separator :
    Enter CSV Separator.

    CSV Enclosure :
    Enter CSV Enclosure.

    Upload File :
    Upload CSV file to get voucher code from CSV.

Purchased Voucher Code
When you click on the button, then you'll see a list of purchased Voucher Codes for this download. If you want to get a list of all purchased Voucher codes from every download, then you can get that via Downloads > Voucher Codes > Purchased Voucher Codes tab. The image below is an example when you click on the button within the Meta Box settings. You also have then the ability to export these voucher codes as PDF or as CSV.

Purchased Voucher Codes

Used Voucher Code
When you click on the button, then you'll see a list of used Voucher Codes for this download. If you want to get a list of all used Voucher codes from every Product, then you can get that via Downloads > Voucher Codes > Used Voucher Codes tab. The image below is an example when you click on the button within the Meta Box settings. You also have then the ability to export these voucher codes as PDF or as CSV.

Used Voucher Codes

Expiration Date Type
Please select Expiration Date Type either specific time or set date based on purchased voucher date like After 7 days, 30 days, 1 year etc.

Start Date
If you want to make the Voucher Code(s) valid for a specific time only, you can enter an start date here. If the Voucher Code never expires, then leave that option blank.

Expiration Date
If you want to make the Voucher Code(s) valid for a specific time only, you can enter an expiration date here. If the Voucher Code never expires, then leave that option blank.

Vendor's Address
Here you can enter the complete Vendor's address. This will be displayed on the PDF document sent to the customers so that they know where to redeem this Voucher. Limited HTML is allowed.

Website URL
Enter the Vendor's website URL here. This will be displayed on the PDF document sent to the customer.

Redeem Instructions
Within this option you can enter instructions on how this Voucher can be redeemed. This instruction will then be displayed on the PDF document sent to the customer after successful purchase. Limited HTML is allowed.

Locations
If the Vendor of the Voucher has more than one location where the Voucher can be redeemed, then you can add all the locations within this option.

  1. Location
    Enter the address of the location where the Voucher Code can be redeemed. This will be displayed on the PDF document sent to the customer. Limited HTML is allowed.
  2. Location Map Link
    Enter a link to a Google Map for the location here. This will be displayed on the PDF document sent to the customer.

Creating Unlimited Unique Voucher Codes

If you or the Vendor of this Voucher doesn't have a list of codes, the plugin will generate them for you. The amount of codes, the plugin generates is based on the "Number of Voucher Codes" settings. If you enter 100 there, then the plugin will generate 100 unique voucher codes. You only need to enter one code within the "Voucher Codes" option and then choose the option "More than one time" within the Usability settings. The plugin will then generate an unique Voucher code for each customer using the Name, Voucher Code you entered and the Order ID.

Example: If I enter Hello in to the voucher codes field and would then purchase a Voucher Code, the unique generated code would look like the following: WPWeb-Hello-1221 where 1221 would be the Order ID and would always be unique.

If you enter 5 different voucher codes within the voucher codes option and choose the option "Only one time" within the Usability settings then the plugin will automatically set the available vouchers based on the number of codes you entered.

Important: You need to enter at least one code within the voucher codes option and then based on your settings, the plugin will generate the unique codes.


Creating Unlimited Voucher Templates

The plugin adds a new Admin menu found under the Easy Digital Downloads menu and named "Voucher Templates". From here, you can create as many voucher templates as you want with Drag & Drop interface. Plugin will automatically create 5 templates on plugin activation. Click this to see a list of voucher templates:

You can see a demo here: http://demo.wpweb.co.in/edd-pdf-vouchers/wp-admin/edit.php?post_type=eddvouchers

Voucher Templates List

Existing Email Templates

Existing email templates will look like as mentioned in the image below :

you can add a new voucher template by clicking the "Add new" button, which brings you to the Voucher Template Add/Edit Screen. From the Add/Edit screen you can configure your voucher template data.

Voucher Options


Voucher Options

Background Style
Choose the background style for the PDF Voucher like background pattern, background image or background color.

Background Pattern
Select background pattern for the PDF.

Background Image
Upload the background image for the PDF.

Background Color
Select background color for the PDF.

View
Select voucher pdf view like landscape or portrait.

PDF Size
Select PDF Size For PDF page size.

Margin Top
Enter the margin top for the PDF, please set margin in pixel.

Margin Bottom
Enter the margin bottom for the PDF, please set margin in pixel.

Margin Left
Enter the margin left for the PDF, please set margin in pixel.

Margin Right
Enter the margin right for the PDF, please set margin in pixel.

Voucher Drag & Drop interface

Previewing a Voucher

You can preview a voucher, complete with dummy data so you can easily see what your voucher PDF looks like before putting it up for sale. Note that you must save or update the voucher to see any changes in the voucher template Preview:

Voucher Preview

Duplicate a Voucher Template

You can easily duplicate any Voucher Template you created with just one click. After clicking on the "Duplicate" link, the plugin will create a draft of the chosen Voucher Template, including all content and settings.

Voucher Duplicate

Voucher Products on the Frontend

On the frontend the product voucher options will be shown on the download page, for instance a Recipient Name, Recipient Email, Recipient Message options might look like this:

Voucher on Shop

Demo: http://demo.wpweb.co.in/edd-pdf-vouchers/downloads/gift-voucher-simple-download/


Downloading the Voucher

The voucher PDF will be generated and available for download from the customers "Purchase Confirmation" page or from purchase order emails where a normal downloadable download would be available for download.

Download Voucher

Voucher Administration


Managing a Voucher Order

Once a voucher order is placed and access is granted to the voucher, you manage it like any other order, and according to your particular business procedures. File access can be viewed and managed as with any standard downloadable product. Additionally a new panel named Voucher Details will be added to the standard Easy Digital Downloads Order admin; for orders containing a product voucher the vendor logo, product title, voucher code, voucher data, expire date and quantity will be displayed:

Manage Voucher Order

Downloading Vouchers

In some cases, an administrator may need to download a voucher. A "Download" link appears in the Edit Order screen within the Vouchers meta box after the voucher is generated. Vouchers are generated when order status is updated to processing or complete.

Downloading Vouchers

Voucher Codes

All Purchased and Used voucher codes list kept and available for viewing from Downloads > Voucher Codes.

Purchased Voucher Codes

Here you can see the list of all purchased voucher codes with the details like Download Information, Buyer's Information and Payment Information. You can also export this data as CSV or PDF as well.
Note :when vendor user login, he can also access this page but he can view only purchased voucher products which are assigned to him.

Purchased Voucher Code

Demo: http://demo.wpweb.co.in/edd-pdf-vouchers/wp-admin/edit.php?post_type=download&page=edd-vou-codes


Used Voucher Codes

Here you can see the list of all used voucher codes with the details like Download Information, Buyer's Information, Payment Information and Redeem Information. You can also export this data as CSV or PDF as well.
Note : when vendor user login, he can also access this page but he can view only used voucher products which are assigned to him.

Used Voucher Code

Demo : http://demo.wpweb.co.in/edd-pdf-vouchers/wp-admin/edit.php?post_type=download&page=edd-vou-codes&vou-data=used


Unused/Expired Voucher Codes

Here you can see the list of all unused/expired voucher products and with the details of expired voucher codes, Download Information, Buyer's Information, Order's Information. You can also export this data as CSV or PDF as well.
Note : When vendor user login, he can also access this page but he can view only expired voucher products which are assigned to him.

Used Voucher Code

Demo : http://demo.wpweb.co.in/edd-pdf-vouchers/wp-admin/edit.php?post_type=download&page=edd-vou-codes&vou-data=expired


Check Voucher Code

To integrate the "Check Voucher Code" Page on frontend into any page or post you can use the [edd_vou_check_code] shortcode. After inserted shortcode it will look something like the one shown in the image below on frontend:

Check Voucher Order

When you enter valid voucher code, it will display product information with option to redeem the voucher code as mentioned in the image below:

Check Voucher Order

Demo: http://demo.wpweb.co.in/edd-pdf-vouchers/check-voucher-code/

How Voucher Purchases Work

The PDF voucher file is generated at the time when the customer is granted access to downloadable files for the order, so it's not generated immediately at purchase. Typically this would happen when the order status is set to "complete".

Once a voucher is generated, it will be attached and linked to from the standard customer order receipt emails, and available for download from the customer's My Account view order page, as well as the order Thank You page.

If the optional "Recipient Email" field is enabled, a separate email will also be sent to the email address supplied by the customer, and is perfect for vouchers that can be sent as gifts. This will be sent at the same time as the customer email, so vouchers are only sent to recipients for processing or completed orders.


EDD PDF Vouchers Demo

You can view a demo of the EDD PDF Vouchers plugin here: EDD PDF Vouchers Demo


Need Support
 
Created: June 20, 2014
By: WPWeb
Email: support@wpweb.co.in
If you have any question which you couldn't get answered within our documentation then feel free to email us on support@wpweb.co.in. If you have valid license key then please raise a ticket through our support system http://support.wpweb.co.in. We would also love to hear if you have any new Ideas for making our plugin even more rich with new features, Do visit our Ideas forum. Thank you.