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:

- Was this article helpful?
- Yes, thanks!Not really
Comments (4)
hexaae
December 5, 2020
Do you plan to add it this kind of feature (additional Category column or any other customized column…) + sort-by in the backend configuration? Would be handy, instead of having to add “external” snippets of code to achieve that…
Mark
December 7, 2020
Thanks for the feedback. In the 4.1.3 version of the plugin, we have added sort by sku and product name option too along with the group by category option.
krishna shah
October 8, 2020
how to show the same for invoice ?
Mark
October 9, 2020
Please try changing the template type to the invoice as shown below in the code.
if($template_type=='invoice')