Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Displaying Product Wise Discounts and Discount Percentages in WooCommerce Invoices

Displaying Product Wise Discounts and Discount Percentages in WooCommerce Invoices

Last updated on November 13, 2024

Customers use various coupons to redeem discounts on products in an online store. Store owners can display these discounts on invoices as an amount and percentage for each product by adding a custom code snippet to their WordPress site. In the invoice, separate columns will show the discount amount and percentage.

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