Invoice Info versus Packing Slip Info

[ad_1]

Hi @pwindpub,

If you are using the footer to add the payment directions and the due date, you can hide it on the packing slips, using this code snippet:

/**
 * PDF Invoices & Packing Slips for WooCommerce:
 * Adds custom styles to the PDF documents
 */
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
	?>
    /* Hide the footer on the packing slip */
	.packing-slip #footer {
		display: none;
	}
	<?php
}, 10, 2 );

If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

In brief, if you have a child theme, you can add code snippets in its functions.php file: don’t add code snippets to the functions.php file from your parent theme, because you may lose your customizations after updating your parent theme! The another way to add code snippets, that is safer in my humble opinion, is to use the Code Snippets plugin: This plugin stores the code snippets in your database, so you don’t have to worry about losing your customizations after updating your plugins or theme 😉

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer