Home > Docs > Hide Variation Details from WooCommerce Document Types

Hide Variation Details from WooCommerce Document Types

Last updated on December 11, 2023

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.

  1. Using the inbuilt option – Show variation data below each product
  2. 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.

  1. 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.
  2. Disable the option to hide the variation details.
  3. Click on Update Settings.