Search orders by transaction ID

Do you need to search an order but do not remember its ID or even the customer’s email address or his/her name?

Maybe you only have the transaction ID from PayPal or Stripe.

WooCommerce does not include the transaction ID in the metas used to search orders. There’s a quick way to allow this though.

TL;DR – WooCommerce Order Search by Transaction ID allows administrators and shop managers to search orders by Transaction ID in WooCommerce. Download the plugin here

As you probably know, WooCommerce, like WordPress, is full of hooks to allow you to change the default behaviour of the core.

In this case, we will use a filter to include the meta _transaction_id while searching for an order in the back-end.

Open the file functions.php located in wp-content/themes/your-theme-name/ and add this code at the end of it:

There’s more though. To make your life easier i wrote a little plugin so you just need to install it on your site and activate it. No other actions or configuration are needed. Install, activate, and you are ready to go.

Download the plugin here


More Posts That You Might Like…


Leave a Reply

Categories

Newsletter

Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Blog at WordPress.com.

%d bloggers like this: