Forums
Forums / Plugin: PDF Invoices & Packing Slips for WooCommerce / Remove specific item-meta
(@lawkwok)
10 years, 7 months ago
Hello,
Is it possible to remove certain item meta? For example, I may want to prevent the SKU from showing on some invoices.
Thank you.
https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
(@pomegranate)
Removing SKU is quite simple, just remove the following line from invoice.php:
<?php if( !empty( $item['sku'] ) ) : ?><dt class="sku"><?php _e( 'SKU:', 'wpo_wcpdf' ); ?></dt><dd class="sku"><?php echo $item['sku']; ?></dd><?php endif; ?>
The topic ‘Remove specific item-meta’ is closed to new replies.