• Resolved francesca111

    (@francesca111)


    I would like to hide the Order date from the packing list. I have added the below function that does hide the date but I can still see the string “Order Date:”. I would like the entire row to be hidden from the packing list, and no space left. The end results should be Order ID on one row and Shipping Method on the following row, with no spaces in between.

    add_filter(‘wpo_wcpdf_order_date’, ‘__return_false’ );

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @francesca111

    You could hide the order number inside the Packing Slip with the code snippet below:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
        .order-data .order-number {
            display: none;
        }
        <?php
    }

    If you never worked with actions/filters, please read our documentation page: How to use filters

    Thread Starter francesca111

    (@francesca111)

    Great, it works like a charm!

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

The topic ‘Hide Order Date from packing list’ is closed to new replies.