• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Essential Premium WooCommerce Plugins - WP Desk
  • Plugins
  • Bundle
  • Support
  • Blog
  • My Account
  • 0

Stay updated on our how-to articles

WP Desk news, WooCommerce tips, promo codes - right to your inbox.

By entering your e-mail, you agree to our Terms & Conditions and Privacy Policy.

Piotr Rzepczynski

Customize WooCommerce coupons & sell PDF vouchers

Updated: September 16, 2022 / News, Uncategorized

Use WooCommerce coupons as PDF vouchers to increase sales in your e-commerce store. Today, I'm going to show you some useful tips for managing PDF product vouchers and customizing such coupons in WooCommerce with a plugin. If you've been wondering how to display the variable product name on a voucher, how to display a column of coupon numbers on the order management page, or how to generate multiple coupons within a single order, this is the article for you.

Customize PDF Coupons in WooCommerce

In this article, you'll learn how to customize the Flexible PDF Coupons - Gift Cards & Vouchers for WooCommerce plugin. The below tips will help you adjust the plugin to your needs and offer your customers beautiful PDF product vouchers in your WooCommerce store!

Table of contents

  • Customize the names of PDF vouchers
  • Coupon numbers in the order panel
  • Generate multiple PDF vouchers in WooCommerce

Variation names on the voucher

What would you say if a customer ordering a voucher from your shop could see a variable product name on the PDF printout? It’s easy if the WooCommerce voucher product has one distinctive variation attribute. The difficulty begins when the product has more attributes. In this case, the voucher will only have the main product name. Let's try to customize coupons WooCommerce by modifying your shop

You can change this by modifying the display of attributes in WooCommerce orders. WooCommerce displays the full name of the variation in the order entry, i.e. with the attribute in the title, by default. However, if there are more attributes, they will be displayed one below the other in the order as follows:

T-shirt - size M
colour : white

Set variable product voucher to customize coupons woocommerce

The WooCommerce voucher will only have the product name, with no indication of the variation. If you want a specific variation to be displayed on the Voucher as well, follow these three steps:

  • add the filter to functions.php
  • specify the default variant, i.e. do not leave the option Any
  • if the attribute name has more words, change the slug in Products→Attributes→Edit→Slug settings to one without a dash

Customize WooCommerce coupons to enjoy the variable name for the PDF vouchers

The final result in the order will be as follows

T-shirt - size M, white
The voucher will look as follows ;)

This solution will work for all products in the store.

How can coupon numbers be shown in the order panel?

This handy solution allows you to quickly look, which WooCommerce PDF product vouchers code has been generated for a specific order.

This is useful, especially when a customer wants to know more about a voucher code, and you need to get the right information quickly as well. Clicking through multiple orders is a recipe for your customer's communication chaos. Especially as, for example, the order number, and the coupon code can be available in one panel.

Voucher code on WooCommerce order panel

How can you achieve this? All you need to do is modify your WooCommerce a bit. Add the filter below to the functions.php of the current theme you are using in your store.

That's all. A quick change, but how useful ;)

How can I generate several coupons in one order?

It's time for one more snippet that will allow you to generate multiple coupons in a single order. If you purchase multiple vouchers within a specific order, the Flexible PDF Coupons WooCommerce PRO plugin will generate a single coupon for the value of the vouchers purchased. If you want to generate multiple coupons within one order, use the following filter in your functions.php file.

Two coupons in one order WooCommerce

That's all. The snippet is added, so multiple coupons will be generated in one order.

Summary

The above tips will be especially useful for users of the Flexible PDF Coupons WooCommerce free plugin, and in the PRO version too.

Flexible PDF Coupons WooCommerce £59

Design your own PDF coupons and sell them as gift cards, tickets or service vouchers by using Flexible PDF Coupons for WooCommerce.

Add to cart or View Details
WP Desk
1,000+ Active Installations
Last Updated: 2023-03-06
Works with WooCommerce 7.1 - 7.5.x

Customize PDF coupons WooCommerce and increase sales of your PDF vouchers!

One more thing! You can add more data on the PDF gift cards dynamically from the order, product, or checkout with the Custom Shortcodes add-on for the PRO.

If you have ideas for cool WooCommerce modifications, share them in the comments!

Tweet

3 minutes read1051 views

Piotr Rzepczynski

South Korean cinema, sailing, and pre-2000 music fan. Fascinated with WordPress for a few years now, although at first there was no indication that this would be a longer relationship. Finds himself working remotely

Powered by WP Desk

WP Desk brings you great WooCommerce plugins. We strive to save your time and money by speeding up your processes. Use our plugins to build a better store. Awesome support included in the package.

Premium WooCommerce Plugins →

Stay updated on our how-to articles

WP Desk news, WooCommerce tips, promo codes - right to your inbox.

By entering your e-mail, you agree to our Terms & Conditions and Privacy Policy.

WP Desk › Uncategorized › Customize WooCommerce coupons & sell PDF vouchers

Footer

WP Desk - WooCommerce Plugins

At WP Desk we create great WooCommerce plugins with awesome support. Save time and money with our e-commerce solutions. See how we can help you improve your e-store →

Secured by Comodo

WP Desk

  • About us
  • Giving Back
  • Blog
  • Contact us

Products

  • Premium Plugins
  • Get Support
  • WooCommerce Invoices
  • Email Marketing
  • Octolize

Legal

  • Terms & Conditions
  • Refund Policy
  • Support Policy
  • Privacy Policy

© 2023 WP Desk