Plugin Contributor
kluver
(@kluver)
Hi @user777,
The order number is displayed by default by our plugin. You can hide the order number on the invoice with a small code snippet:
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
function wpo_wcpdf_custom_styles () {
?>
.invoice tr.order-number {
display: none;
}
<?php
}
This code snippet should be placed in the functions.php of your child theme. If you haven’t worked with code snippets or functions.php before please read this: How to use filters
-
This reply was modified 7 years, 1 month ago by
kluver.
Hi,
this code does not work in the functions.php unfortunately.
regards
Plugin Contributor
kluver
(@kluver)
Hi @user777,
Can you tell me a bit more on how you’ve added the code snippet exactly? This code snippet should work fine (tested locally and it works). Is it possible you are working with a custom template and you’ve changed the CSS class of the order number row?
Also note that this snippet only removes the order number from the invoice. If you would also like it to be removed from the packing slip you should omit the .invoice part. Like this:
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
function wpo_wcpdf_custom_styles () {
?>
tr.order-number {
display: none;
}
<?php
}
Hi,
it worked now, I do not know why. In this case Thank you very much!
regards