EDD PDF Vouchers FAQ

“EDD PDF Vouchers FAQ” Documentation by “WPWeb”

Here you will find answers to commonly asked questions about the EDD PDF Vouchers extension.

Frequently Asked Questions

Does this work with Easy Digital Downloads Coupons?

No, the vouchers not intended to be redeemed on your online shop. This does not integrate with Easy Digital Downloads Coupons.

Why is a single voucher generated with multiple voucher codes when a product is ordered with a quantity > 1?
How do I generate multiple quantities of a voucher?

There is a option global settings "Multiple voucher". if you tick that option it will generate multiple voucher pdf.


Is it possible to add the buyer's name, product name etc. to the voucher pdf?

yes, you can add following shortcodes in custom block of the voucher template.

Supported Shortcodes are :

{redeem} - displays the voucher redeem instruction.
{sitelogo} - displays the voucher site logo.
{vendorlogo} - displays the vendor logo.
{expiredate} - displays the voucher expire date.
{vendoraddress} - displays the vendor address.
{siteurl} - displays the site url.
{location} - displays the location(s).
{buyername} - displays the buyer name.
{buyeremail} - displays the buyer email.
{orderid} - displays the order id.
{orderdate} - displays the order date.
{productname} - displays the product name.
{codes} - displays the voucher code(s).
{recipientname} - displays the recipient name for voucher code(s).
{recipientemail} - displays the recipient email for voucher code(s).
{recipientmessage} - displays the recipient message for voucher code(s).
{productprice} - displays the product price.
{payment_method} - - displays the payment method of the order.

How can we change the dimensions of the exported pdf?

By default exported pdf size is 11.81 X 6.30 inches. we have 2 size options.
1) Landscape ( 11.81 X 6.30 inches )
2) Portrait       ( 8.27 X 11.69 inches )

How to customize Gift Notification Email template or Vendor Sale notification Email template?

The edd_vou_send_email_body filter is applied to the main message text for "sale notification" and "gift notification" emails sent through EDD Pdf Vouchers. It receives five parameters:
  • $body - an HTML string containing the whole contents of the email
  • $notification_type - Type of notification like "sale_notification" and "gift_notification"
  • $site_logo - The logo displaying in content header
  • $subject - The email subject text
  • $message - The email message text

How Can I delete Purchased / Used / Unused voucher codes ?

When you delete the order, all voucher codes associated with that order will automatically get removed. you can't manually remove voucher codes, you need to delete the order(s) to remove associated voucher code(s).

Why does background image look blurry on pdf voucher?

This is most likely issue with background image size. Please make sure you have selected background image with proper size. Please check size chart to get idea about background image size based on pdf size you have selected.

Also make sure you have selected 'Full Image' option from the WordPress Image Uploader when you choose background image. Please check below image :

Voucher Options

TCPDF ERROR: [Image] Unable to get the size of the image?

There is a global setting for that under Settings -> Extensions -> Voucher Options -> Enable Relative Path. Please check this option and it should resolve the error.

If there is still same issue, please confirm with your hosing provider that getimagesize() function working properly on your server. if it dont work then you will get this error message.

Fatal error: Allowed memory size of XXXXXXX bytes exhausted (tried to allocate XXXXX bytes) in /path/to/function/file on line XXX ?

The solution is to increase the PHP memory limit on your server.
WordPress offers a way to Increase memory allocated to PHP in your wp-config.php file

Please note that this is not a problem with Easy Digital Download PDF Voucher - the available memory is shared among all plugins, theme, and WordPress core running in your installation. As the different parts of your installation load, they use up your server's capacity.