Hide order item meta
-
Hi there,
For a WooCommerce Subscription order, the meta data gets printed on the PDF invoice.
This results in non-human readable PDF invoices when the order has one or more subscription products in it.
I found the line where the meta info is being filtered before being output into the template:File: woocommerce-pdf-invoices/includes/views/templates/micro/body.php :
Line 63:
// Skip hidden core fields
if ( in_array( $meta[‘meta_key’], apply_filters( ‘woocommerce_hidden_order_itemmeta’, array(
‘_qty’,
‘_tax_class’,
‘_product_id’,
‘_variation_id’,
‘_line_subtotal’,
‘_line_subtotal_tax’,
‘_line_total’,
‘_line_tax’,
) ) ) ) {Could you please make the following addition for the next version of this plugin?
‘_subscription_interval’,
‘_subscription_length’,
‘_subscription_trial_length’,
‘_subscription_trial_period’,
‘_subscription_recurring_amount’,
‘_subscription_sign_up_fee’,
‘_recurring_line_total’,
‘_recurring_line_tax’,
‘_recurring_line_subtotal’,
‘_recurring_line_subtotal_tax’,Thank you very much.
Greetings,
Johan Oldenburg
Superscherp Ontwerp
https://www.s2ontwerp.nl
https://www.s2mobile.nl
- The topic ‘Hide order item meta’ is closed to new replies.