Add SKU to Woocommerce Search

Recently a client requested that the sku be added to the woocommerce product search on his site. He wanted his customers to easily find a product by typing in the sku in the product search bar.

I found most of the code in the codex here but it didn’t work out of the box. So I had to make an adjustment. Here is the finished version. Put it in your functions.php file

I hope this helps you to create a better product search for Woocommerce. As you can see, this code may be adjusted as needed to include other metadata as well. Feel free to Contact Us if you have questions.

Leave a Reply

Start a blooming business today from $39?

Purchase a license to gain access to our premium themes and begin building up powerful websites.

Start typing and press Enter to search