Hi @bigtiny,
Hi, I can’t seem to get the right php function code for this:
(1) remove the logo, shop name and address on my packing slip.
Add this code snippet to your site to do it:
/**
* Remove the logo, shop name and address on packing slip
*/
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
function wpo_wcpdf_custom_styles ( $document_type, $document ) {
if ( $document_type == 'packing-slip' ) {
?>
table.head.container {
display: none;
}
<?php
}
}
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
(2) display delivery instructions on my packing slip.
If you need to add the same notes for all your packing slips, you can do it using the following code:
/**
* Display delivery instructions on packing slip after customer notes
*/
add_action('wpo_wcpdf_after_customer_notes', function( $template_type, $order ){
if( $template_type == 'packing-slip' ){
?>
<h3>Delivery Instructions</h3>
<p>Your delivery notes go here :)</p>
<?php
}
}, 10, 2);