Hi @jennie44
Yes, that should be possible using a code snippet or using our Premium Templates extension and a custom block. In which section of the template do you want to display it?
OK, great!
In the middle of the pdf that I export, under the list with the products.
Hi @jennie44,
This code snippet should work for you:
/**
* Add an image after the customer notes on the packing slip
*/
add_action('wpo_wcpdf_after_customer_notes', function( $document_type, $order ) {
if ( $document_type == 'packing-slip' ) {
// Replace the following link with your actual image link
$image_link = 'https://picsum.photos/id/237/600/300';
echo '<img src="' . $image_link . '">';
}
}, 10, 2 );
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
Hi @jennie44,
Since we haven’t heard back from you in the last two weeks, we’re assuming you solved this issue, so I’ll go ahead and mark this ticket as Resolved.
Feel free to open a new topic if you have more questions!