1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Third-Party Compatibility
  5. Display order meta in Web Toffee Invoice and Packing Slip plugin

Display order meta in Web Toffee Invoice and Packing Slip plugin

Product Add-Ons Ultimate is compatible with the Invoice and Packing Slip plugin from Web Toffee.

To display order meta on a packing slip or invoice:

  • In the Packing Slip plugin, go to Invoice Settings > Advanced
  • Add the order meta and product meta as required
web toffee integration

If the meta doesn’t show, you might need to add this snippet:

<?php
/**
* Display hidden meta data in Web Toffee Picklist plugin
*/
add_filter( 'wt_pklist_show_hidden_order_item_meta', '__return_true' );

Here’s an extended snippet provided by WebToffee support:

<?php
/* This code was provided by WebToffee support on 10/21/25
* Makes Plugin Republic's Product Add-ons plugin available to use in the packing list PDF
*/
add_filter( 'wf_pklist_add_package_product_meta', 'wf_pklist_add_additional_fields', 10, 5 );
function wf_pklist_add_additional_fields( $additional_product_meta, $template_type, $_product, $order_item, $order ) {
if ( 'packinglist' !== $template_type ) {
return $additional_product_meta;
}
$order_item_id = isset( $order_item['order_item_id'] ) ? $order_item['order_item_id'] : 0;
if ( ! $order_item_id ) {
return $additional_product_meta;
}
$meta = wc_get_order_item_meta( $order_item_id, 'product_extras', true );
if ( empty( $meta ) || ! is_array( $meta ) ) {
return $additional_product_meta;
}
foreach ( $meta as $meta_group ) {
foreach ( $meta_group as $meta_values ) {
foreach ( $meta_values as $meta_data ) {
if ( ! empty( $meta_data['label'] ) && isset( $meta_data['value'] ) ) {
$additional_product_meta .= sprintf(
'<small><br>%s: %s</small>',
esc_html( $meta_data['label'] ),
esc_html( $meta_data['value'] )
);
}
}
}
}
return $additional_product_meta;
}

Was this article helpful?

Related Articles