Hello @buschtrommel
That’s quite strange. Are you using any third-party plugin or function that modifies the search? Could you disable other plugins and check if it works again?
Let me know.
Hey Alex,
thy for the fast answer. I did – there is no custom function or plugin. I can see the invoice numbers in the overview – but its not possible to find them by search.
I also tried a custom script now:
add_filter( ‘woocommerce_shop_order_search_fields’, ‘woocommerce_shop_order_search_order_total’ );
function woocommerce_shop_order_search_order_total( $search_fields ) {
$search_fields[] = ‘wpo_wcpdf_invoice_number’;
return $search_fields;
}
Still no chance…
Plugin Contributor
Ewout
(@pomegranate)
We already do the exact same thing in our plugin (only difference being that your meta key was not correct):
https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/v2.5.1/includes/class-wcpdf-admin.php#L25
https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/v2.5.1/includes/class-wcpdf-admin.php#L587-L594
The only explanation I can think of is that either a plugin or custom code is interfering with the woocommerce order search (as Alex also mentioned above) or that you are using a different PDF Invoice plugin. Can you verify that you are using “WooCommerce PDF Invoices & Packing Slips”?
Hey. Strange – I deactivated + activated all plugins – now it works.
So, I`m fine! Thank you for the support.
<3