• Resolved User777

    (@user777)


    Hi,

    for me, an order number appears on the invoice, although I have nowhere activated an order number. How can I disable the order number because the invoice number is sufficient.

    thx

    regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.
    Thread Starter User777

    (@user777)

    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
    }
    Thread Starter User777

    (@user777)

    Hi,

    it worked now, I do not know why. In this case Thank you very much!

    regards

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Order number’ is closed to new replies.