This documentation is for the older version of the WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels plugin. If you are using the new version of the plugin, please note that this documentation no longer applies to you. Find the relevant documentation from here :

WooCommerce PDF Invoices, packing slips and credit notes plugin | WooCommerce Shipping labels, Dispatch labels and Delivery notes plugin | WooCommerce Address labels plugin | WooCommerce Picklists plugin | WooCommerce Proforma invoices plugin | Customizer for WooCommerce PDF Invoices

Home > Docs > WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels > How to Sort Items by Category Name and Product Name in Packing Slip

How to Sort Items by Category Name and Product Name in Packing Slip

Last updated on November 12, 2024

WebToffee’s Print Invoice, Packing Slip, Shipping Label and Delivery Note plugin allows you to print, download or email various documents relevant for your WooCommerce store. The plugin includes provisions to group the products by category, append variation data, include product/order meta data into the packing slip. Additionally, you may want to sort the items by category name and product name in your packing slip. This can be easily achieved by simply inserting the below given code snippet into the function.php of active child theme editor.

Sample packing slip with sorted category name and product name are as shown below:

Sample Packing Slip - Sorted by category and product
Sample Packing Slip – Sorted by category and product