• 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-11-03 / Blog, Plugin Tutorials

Customize WooCommerce coupons & sell PDF vouchers

Dorota Ingielewicz

Customize WooCommerce coupons and sell polished PDF vouchers that match your products and workflows. This guide explains how to show variation names, display generated coupon codes in the order panel, and create multiple vouchers from one order with Flexible Coupons.

Customize WooCommerce coupons as PDF vouchers

Our Flexible Coupons plugin helps WooCommerce stores create and sell gift cards, printable vouchers, service credits, and event tickets in PDF format. You can prepare a branded design, add customer-facing details, and automate voucher delivery without building a separate voucher system.

Effective WooCommerce PDF coupon customization often comes down to practical details. A voucher should identify the purchased product correctly, provide the information needed for redemption, and remain easy for store staff to manage. The following adjustments address common requirements for products with variations and orders containing one or more vouchers.

If you are considering additional functionality, you can compare the available Flexible Coupons options before choosing a setup for your store.

Table of contents

  • Show variation names on PDF vouchers
  • Display coupon numbers in the order panel
  • Generate multiple PDF vouchers in one order
  • Implement WooCommerce coupon customizations safely
  • Key takeaways
  • Summary

Show variation names on WooCommerce PDF vouchers

A variable product may represent several voucher options, such as different service types, durations, locations, or packages. Showing only the main product name on the PDF can leave the recipient or employee without enough information to identify what was purchased.

WooCommerce normally displays a variation name and its attributes in the order. With multiple attributes, the result may look like this:

T-shirt – size M
Colour: white

Variable WooCommerce voucher product with product attributes

The PDF voucher may still show only the main product name. To include a specific variation in the displayed voucher name, follow these steps:

  • Add the supplied filter to a child theme’s functions.php file or a dedicated customization plugin.
  • Set a default variation instead of leaving the attribute selection as Any.
  • If an attribute name contains several words, check its slug under Products → Attributes → Edit and use the format required by the snippet.

WooCommerce PDF coupon displaying a selected product variation

After the customization, the order and voucher can display a clearer name, for example:

T-shirt – size M, white

This filter changes product-name output across the store, not only on one voucher product. Test regular and variable products before using it in a live WooCommerce shop.

Display WooCommerce coupon numbers in the order panel

When a customer asks about a voucher, store staff need to find the relevant code quickly. Displaying the generated WooCommerce voucher code directly in the order list can reduce the need to open individual orders and search through their details.

This is particularly useful for retail teams, salons, spas, gyms, venues, and other businesses that handle voucher questions by phone or email. The order number and associated coupon code can be reviewed in one place.

Generated voucher code displayed in the WooCommerce order panel

Use the following filter to add the relevant coupon information to the WooCommerce order panel. As with any custom code, place it in a child theme or customization plugin rather than editing the parent theme directly.

After implementing the change, create a test order and confirm that the displayed code corresponds to the PDF voucher generated for that order.

Generate multiple PDF vouchers in one WooCommerce order

Some orders require a separate voucher or ticket for every purchased unit. For example, a customer may buy several admission tickets, multiple service vouchers for different recipients, or a set of gift cards that must be redeemed independently.

The following customization was prepared for the Flexible PDF Coupons WooCommerce PRO workflow. It changes voucher generation so that several coupons can be created within one order instead of combining purchased units into a single coupon.

Two separate WooCommerce PDF vouchers generated from one order

For stores that regularly need several coupons or tickets in one order, our Multiple PDFs add-on provides a dedicated workflow for this use case. It is suitable when separate PDF files and independently usable coupons are part of the standard purchasing process.

Before generating multiple vouchers, decide whether each purchased quantity should create an independent coupon. Separate codes are helpful for individual recipients and redemptions, but they also increase the number of coupons your team must manage.

Implement WooCommerce coupon customizations safely

Each snippet changes how WooCommerce or Flexible Coupons processes and displays data. A small syntax error in functions.php can affect more than the voucher itself, so these customizations should be introduced carefully.

  • Use a staging site: test the code away from your live checkout.
  • Back up the store: create a current backup before changing theme or plugin files.
  • Avoid the parent theme: theme updates can overwrite code added directly to its functions.php file.
  • Place sample orders: test simple and variable voucher products, different quantities, and all relevant order statuses.
  • Check the final PDF: verify the product name, variation, coupon code, layout, and number of generated files.
  • Test staff workflows: make sure employees can locate and validate the information required for redemption.

Design and personalize your PDF coupons

Code snippets solve specific data and generation requirements, while the voucher itself can be prepared with the plugin’s design tools. Depending on the selected Flexible Coupons version and extensions, a template can include customized text, colors, images, layouts, recipient information, personal messages, coupon values, and expiry details.

The free version is available from the Flexible PDF Coupons WooCommerce plugin page. PRO is intended for merchants who need extended voucher workflows and access to compatible add-ons.

Flexible PDF Coupons PRO WooCommerce

Design PDF coupons and sell them as gift cards, service vouchers, printable credits, or tickets. Extend the workflow with suitable add-ons when you need scheduled sending, custom data, QR codes, or multiple PDF files.

Add to cart
or
View details

WP Desk

If your template needs dynamic information from an order, product, product attribute, or custom field, read how to create personalized PDF gift cards with dynamic data. This workflow uses the Custom Shortcodes add-on for Flexible Coupons PRO.

Key takeaways

  • Clear variation names help customers and staff identify the exact voucher option purchased.
  • Displaying coupon codes in the WooCommerce order panel can simplify customer service.
  • Separate coupons are useful when products must be delivered or redeemed independently.
  • The Multiple PDFs add-on supports stores that routinely create several vouchers or tickets in one order.
  • Template design and code-level customization address different needs and can be used together.
  • All snippets should be tested on a staging site before deployment.

Summary

To customize WooCommerce coupons effectively, start with the information customers and employees need most. Show complete product variation names, make generated codes easy to find, and choose whether each purchased unit should produce a separate PDF voucher.

Flexible Coupons can support gift cards, service vouchers, printable credits, and PDF event tickets, while PRO and relevant add-ons extend the workflow for more advanced requirements. If you have an idea for another practical WooCommerce modification, you can share your suggestion with us.

FAQ

Can I customize WooCommerce PDF coupons without coding?
You can prepare and adjust voucher designs with the plugin’s editor. The specific technical changes described in this guide—such as altering variation-name output or adding coupon codes to the order panel—use code snippets.

Where should I add the WooCommerce customization snippets?
Use a child theme’s functions.php file or, preferably, a dedicated customization plugin. Do not add them directly to a parent theme because an update may overwrite the changes.

Do these customizations require Flexible Coupons PRO?
The requirement depends on the workflow. The variation-name and order-panel changes address WooCommerce data display. The multiple-coupon example is presented for the PRO workflow, while regular multi-file generation can be handled with the relevant Multiple PDFs add-on.

Can separate coupons be created for several recipients?
Separate coupon generation can support this business model. Recipient details, delivery rules, and the number of generated PDFs should be tested with the exact Flexible Coupons configuration and add-ons used by your store.

Can order or product data be inserted into a PDF voucher?
Yes. With Flexible Coupons PRO and the Custom Shortcodes add-on, supported WooCommerce order, product, attribute, and field data can be imported into voucher templates.

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}