Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes you can do that via some CSS. You can learn more about it in the FAQ.
    https://ww.wp.xz.cn/plugins/woocommerce-delivery-notes/faq/

    Here’s an extract:

    Can I hide the prices on the delivery note?

    Sure, the easiest way is to hide them with some CSS that is hooked in with wcdn_head.

    An example that hides the whole price column and the totals. Paste the code in the functions.php file of your theme:

    function my_price_free_delivery_note() {
        ?>
            <style>
                .delivery-note .head-price span,
                .delivery-note .product-price span,
                .delivery-note .order-items tfoot {
                    display: none;
                }
                .delivery-note .order-items tbody tr:last-child {
                    border-bottom: 0.24em solid black;
                }
            </style>
        <?php
    }
    add_action( 'wcdn_head', 'my_price_free_delivery_note', 20 );
    Thread Starter MagineM

    (@maginem)

    Hi,

    Awesome! Thank you.

    Hi

    I applied the patch and it is hiding only total price column, unit prices are still available on the delivery notes. Could you support me ?

    here’s the updated version:

    function my_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', 'my_price_free_delivery_note', 20 );

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

The topic ‘Exclude prices from delivery note’ is closed to new replies.