Plugin Contributor
dwpriv
(@dwpriv)
You can do this by removing those details from the settings under PDF Invoices > General > Shop information
its already empty. as you can https://ibb.co/ymmZ1n5x
Plugin Contributor
dwpriv
(@dwpriv)
Give this code snippet a try
/**
* WPO PDF Invoices & Packing Slips - Hide shop address
*/
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
if ( $order = $document->order ) {
?>
td.shop-info {
display: none;
}
<?php
}
}, 10 , 2 );
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use code snippets.
We also have a blog post here that you may find helpful about adding custom code to your site.
i tried the code but doesn’t work
Plugin Contributor
dwpriv
(@dwpriv)
Give this updated snippet a try
/**
* WPO PDF Invoices & Packing Slips - Hide shop name & address
*/
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
if ( $order = $document->order ) {
?>
div.shop-name,
div.shop-address {
display: none;
}
<?php
}
}, 10, 2 );
it works thank you.
i just want to check is it possible to add the order time ? and i need to display the product price also not only the total price. for more clarification :
if customer buy item1 qty=6
in the invoice it showing the item name and qty and total price. i just need to add one more column before the the total price to be the “product price”.
Plugin Contributor
dwpriv
(@dwpriv)
@shaar7 Since the snippet worked for you, I will mark this topic as resolved. Feel free to open a new topic if you need help with something else.