Searching by SKUs in the WooCommerce 2.1.x Administration

Remi | February 21, 2014 | in WooCommerce

In WooCommerce <= 2.0.20, searching products by SKU in the administration used to be done using the “SKU:” prefix, but this was removed in version 2.1. You can now search by SKU without having to add the prefix in the search form. However there’s a little bug in versions 2.1, 2.1.1 and 2.1.2 in the function that returns only one single result while it should return all products having a SKU starting by a same prefix. This should be fixed in version 2.1.3, or 2.1.4.

As a temporary fix you can add this snippet to the functions.php file in your theme folder:

And then use the old search method (eg. “SKU: 7810” will return all products having the SKU starting by 7810).

The author

About the author Remi: Hey! My name is RĂ©mi Corson, i'm a WordPress Expert Developer, i create high level themes and plugins, and i provide free stuff every week on this website!

Leave a reply