• Skip to primary navigation
  • Skip to main content
LogoMain
WP Desk

WP Desk

WooCommerce Plugins

Flexible Invoices

Flexible Invoices

Automate invoicing

ShopMagic

ShopMagic

E-mail automations

Flexible Coupons

  • Pricing
  • Add-ons
  • Docs
  • Support
  • Blog
  • Ideas
  • My Account
Customize WooCommerce coupons & sell PDF vouchers

Published: 2024-05-07 / Updated: 2026-07-23 / Blog, Plugin Tutorials

Customize WooCommerce coupons & sell PDF vouchers

Dorota Ingielewicz

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!

Customizing WooCommerce PDF coupons often comes down to small details that make a big difference in how professional and trustworthy your vouchers look to customers. A generic, unbranded coupon can feel like an afterthought, while one that correctly displays the right product name, variation, and order details signals that your store pays attention to the experience — not just the transaction. The customizations below address some of the most common gaps between the plugin’s default behavior and what a polished, ready-to-send voucher actually needs.

Before I continue, check out the All Plugins Bundle offer, which gives you the opportunity to purchase the Flexible Coupons PRO plugin with its add-ons for $99.

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 A Variable Product Voucher To Customize Coupons In 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 In The Coupon

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.

WooCommerce Vouchers Code 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.

Before applying any of these snippets to a live store, it’s good practice to test them on a staging environment first. Since each customization modifies functions.php, even a small syntax error can affect your entire site, not just the coupon display. Testing on staging also lets you place a few sample orders and confirm the voucher looks exactly as expected — correct variation name, visible coupon number in the order panel, and the right number of generated coupons — before customers start seeing the result.

WooCommerce Vouchers Two Coupons One Order

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 PRO WooCommerce £59

Design your own PDF coupons and sell them as gift cards, tickets, or service vouchers. Use extra add-ons and insert your own shortcodes, delay sending coupons by email, or even generate QR codes.

Add to cart or View Details
WP Desk
2,000+ Active Installations
Last Updated: 2026-09-02
Works with WooCommerce 10.7 - 11.1

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!

FAQ

Can I customize WooCommerce PDF coupons without coding?
Some customization, like coupon design and layout, can be done through the plugin’s built-in editor. However, the specific tweaks covered in this article — showing variation names, coupon numbers, or generating multiple coupons per order — require adding a filter snippet to your theme’s functions.php.

Will customizing PDF coupons work with any WooCommerce theme?
Yes. The snippets modify how WooCommerce and the plugin display and generate data, independently of your theme, so they should work regardless of which theme your store uses.

Do these customizations require the PRO version of Flexible PDF Coupons?
The variation name and coupon number snippets work with the free version. Generating multiple coupons in a single order specifically requires the Flexible PDF Coupons PRO plugin.

About Dorota Ingielewicz

Marketing Manager at Flexible Coupons. Interested in content writing, online marketing and advertisments of all kinds.

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

© 2026 WP Desk WP Desk & Flexible Coupons

Manage Consent

We use necessary cookies to make our site work. We'd also like to set additional cookies to understand site usage, enhance your browsing experience, and serve personalized ads or content. By clicking ‘Accept All,’ you consent to our use of additional cookies.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}