Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Adding Discount Amount and Percentage to WooCommerce Invoices

Adding Discount Amount and Percentage to WooCommerce Invoices

Last updated on February 5, 2025

Properly displaying discounts on invoices enhances transparency, building customer confidence in online retailers. Showing both the discount amount and percentage for each item gives customers a clear view of their savings, increasing satisfaction. This is possible with WebToffee’s WooCommerce PDF Invoices, Packing Slips, and Credit Notes plugin, by adding a custom code snippet to your WordPress site. The discount amount and percentage will be shown in separate columns.

Showing product-wise discounts and discount percentages

Add the custom code snippet given below to your WordPress site to display product-wise discounts and discount percentages in separate columns within the product table of WooCommerce invoices.

You can add the custom code snippet to the active child theme’s functions.php file or use a third-party plugin for the addition. For more details on adding custom code snippets using a third-party plugin, check out the following article: Adding Custom Codes with a Third-Party Plugin.

The invoice document, after adding the custom code snippet, will look like this:

Invoice showing discount amount and discount percentage
An invoice showing discount amount and discount percentage