Nicola Mustone

Happiness Lead @ Automattic



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

Advertisements

Subscribe to This Blog

Receive new articles from this blog directly in your inbox! No spam guaranteed!

Join 651 other subscribers

Contribute to Improving This Blog

Did you enjoy this article? Was it helpful? Contribute to help me write more articles! The funds collected from this blog are reinvested directly into improving my skills or the blog so that I can provide more and better content!

One-Time
Monthly
Yearly

Make a one-time donation

Make a monthly donation

Make a yearly donation

Choose an amount

€5.00
€15.00
€100.00
€5.00
€15.00
€100.00
€5.00
€15.00
€100.00

Or enter a custom amount


Your contribution is appreciated.

Your contribution is appreciated.

Your contribution is appreciated.

DonateDonate monthlyDonate yearly
Advertisements

More Posts That You Might Like…


Leave a Reply

Advertisements

Categories

Newsletter

Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Join 651 other subscribers

About The Author

Hi, I’m Nico! Support Lead at Automattic, championing WordPress.com & WooCommerce. Off-duty, I’m at Elemental Beacon, leading epic D&D adventures. Let’s connect, whether it’s about WordPress or a quest!

Advertisements

Don't Miss a Thing!

Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Join 651 other subscribers

Continue Reading

%d bloggers like this: