• Resolved trbweb

    (@trbweb)


    Hi

    I want to remove the pricing from the delivery note but keep it on the invoice, is this possible?

    Also when i submit a manual order, the purchase order doesn’t show on the invoice, however when a customer places a order i have added a hook to make it show, how can i make this show for manual orders?

    Here is the purchase order plugin i am using: https://woocommerce.com/products/woocommerce-gateway-purchase-order/

    This is the code used to add the purchase order feild:
    function example_custom_order_fields( $fields, $order ) {
    $new_fields = array();

    if( get_post_meta( $order->id, ‘_po_number’, true ) ) {
    $new_fields[‘_po_number’] = array(
    ‘label’ => ‘Customer PO Number’,
    ‘value’ => get_post_meta( $order->id, ‘_po_number’, true )
    );
    }

    Thanks
    Tom

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

    (@kenil802)

    Hi @trbweb,

    Sorry for the delay in response.

    To hide the price on the delivery note, could you please try adding the below code and check whether it works or not.

    Code:
    /**
    * Add this code snippet in functions.php file of your currently active theme.
    */
    function example_price_free_delivery_note() {
    ?>
    <style>
    .delivery-note .head-item-price,
    .delivery-note .head-price,
    .delivery-note .product-item-price,
    .delivery-note .product-price,
    .delivery-note .order-items tfoot {
    display: none;
    }
    .delivery-note .head-name,
    .delivery-note .product-name {
    width: 50%;
    }
    .delivery-note .head-quantity,
    .delivery-note .product-quantity {
    width: 50%;
    }
    .delivery-note .order-items tbody tr:last-child {
    border-bottom: 0.24em solid black;
    }
    </style>
    <?php
    }
    add_action( ‘wcdn_head’, ‘example_price_free_delivery_note’, 20 );

    Please let us know how it goes.

    Also, for the manual order. I need to ask the developer so I will get back to you once I hear from them.

    Regards,
    Kenil Shah

    kt77

    (@kt77)

    Hi all,

    Copy & paste the code in code snippets, as shown in the previous post to remove the Unit Price & total Price in Woocommerce Delivery Note only but it is not working. Not sure why. Theme that I am using is OceanWP(free), latest Woocommerce & WordPress version.

    Any advise on this, thank you in advance

    kt77

    (@kt77)

    I have solve the issue, you can closed the case. Thank alot.

    Thread Starter trbweb

    (@trbweb)

    How did you solve the issue kt77?

    I have tried this and it wouldn’t work for me.

    Thanks
    Tom

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Prices and total costing from delivery note’ is closed to new replies.