Created
April 22, 2022 08:05
-
-
Save bradleysa/6e60093c35bee2ef634f7bf6e9185038 to your computer and use it in GitHub Desktop.
Print Invoice: Hide Prices on Delivery Note
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | |
/** https://copperpanjams.com/wp-admin/index.php?page=wcdn_faq_page **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment