Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support kenil802

    (@kenil802)

    Hi @alasdairmacewan,

    Sorry for the delay in response.

    Can you please download the print-content.php file from the dropbox link provided below. After that please replace the file which is present in woocommerce-delivery-notes/templates/print-order/print-content.php with the downloaded file.

    Then after replacing the file please add the below code in your theme’s functions.php file so that it will hide the composite items on the printed invoices, delivery note, and receipt.

    Code:
    add_filter( ‘wcdn_order_item_product’, ‘print_invoice_order_item_visible’, 10, 2 );
    function print_invoice_order_item_visible( $order, $item ) {
    if ( ! empty( $item[ ‘composite_parent’ ] ) ) {
    return false;
    }
    return $order;
    }

    Dropbox Link:- https://www.dropbox.com/s/44klb63f5lk4yav/print-content.php?dl=0

    Please do let us know how it goes.

    Regards,
    Kenil Shah

    • This reply was modified 3 years, 10 months ago by kenil802.
    Thread Starter alasdairmacewan

    (@alasdairmacewan)

    Good Morning,

    Ive followed the steps given however this doesnt seem to have taken affect, could you help with this matter a little further please.

    Ive uploaded and replaced the existing print-content.php and added the code as a PHP snippet as outlined above, thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘composite products’ is closed to new replies.