There are two methods to hide variation details from WooCommerce document types generated by the WooCommerce PDF Invoices and Packing Slips and Credit Notes plugin.
- Using the inbuilt option – Show variation data below each product
- Using custom code snippet
Hide variation details using code snippet
Add the custom code snippet to the WordPress site which is currently in use. Add it to the active child themes functions.php file or use a third-party plugin for the addition. To know more about how to add a custom code snippet using a third-party plugin, refer to this article.
Hide variation details using the inbuilt option
The Variation details can be individually enabled or disabled using the inbuilt options provided by the plugin. Follow the below steps to hide the variation details.
- All the WooCommerce document types have the option – Show variation data below each product at Invoice/Packing > document type > General > Product display. The below image shows the option in an invoice.
- Disable the option to hide the variation details.
- Click on Update Settings.