WooCommerce SKU Search

Why WooCommerce Search Can't Find Product Codes, and How to Fix It

A customer types the exact code from your catalogue, a quote or the label on the box, and your store says “No products were found”. Here's why it happens and three ways to fix it.

Last checked on 17 November 2026.

The Short Answer

WooCommerce doesn't have a search of its own on the storefront. It uses WordPress's search, and WordPress only looks in three places: a product's name, its short description and its long description.

Your product codes aren't in any of those. WooCommerce keeps the SKU in a separate field beside the product, where WordPress's search never looks. So unless you've typed the code into the name or description by hand, searching for it finds nothing.

Who Searches by Product Code?

More people than you might expect, and they're usually the ones closest to buying:

  • Trade and repeat customers reordering from an old invoice or a quote.
  • Shoppers comparing prices, who paste a manufacturer's part number.
  • People replacing something, reading the code off the label or the box.
  • Your own team, looking a product up while a customer is on the phone.

A search by code is someone who already knows what they want. Showing them an empty page is the most expensive “nothing found” your store has.

Test Your Own Store in One Minute

  1. Open a product in your WordPress dashboard and copy its SKU from the Inventory tab.
  2. Open your store in a private browser window, so you see what a shopper sees.
  3. Paste the SKU into your store's search box and press Enter.
  4. Try it again with the dash removed, or with a space in place of the dash.
  5. If you sell products with sizes or colours, repeat with the SKU of one variation.

When we ran this on a test store using WooCommerce's own sample products, with no search plugin active, a search for a product's SKU found nothing.

One thing catches people out: the search box on the Products screen in your dashboard does find SKUs. That is a separate search for store staff. Your customers don't get it.

Why Variations Are Even Harder

A hoodie that comes in four sizes and three colours is one product to your customer and thirteen things to WooCommerce: the hoodie itself and twelve variations, each with its own SKU.

Variations are stored as hidden items attached to the main product. They never appear in search results themselves, so even a search that could read SKUs has to know that a variation's code should lead to its parent product.

The same is true of barcodes. WooCommerce has a field for a product's GTIN, UPC, EAN or ISBN, and the default search doesn't read that either.

Three Ways to Fix It

1. Put the Code in the Product Name or Description

Type the SKU into each product's short description, and the default search can find it.

It costs nothing, but it has real drawbacks. Every product has to be edited, and kept up to date. The code now shows on the product page whether you want it there or not. It only matches when the customer types the code exactly as you did: “FH-2041” won't be found by “FH 2041” or “FH2041”. And it does nothing for variation codes unless you list every one.

It's a reasonable stop-gap for a store with a dozen products.

2. Add Custom Code

A developer can extend WordPress's search to look in the SKU field. This works, but it's code somebody has to maintain through every WooCommerce update, and searching that field directly gets slower as a catalogue grows. Variations and differently-typed codes each need extra work.

3. Use a Search Plugin That Reads Product Codes

For most stores this is the practical fix. A search plugin builds its own list of everything searchable, including the fields WordPress ignores. When you compare plugins, check four things:

  • Does it search SKUs in the free version, or only in a paid plan?
  • Does it search variation SKUs and lead to the parent product?
  • Does it cope with dashes and spaces, so “FH 2041” finds “FH-2041”?
  • Does it search barcodes (GTIN, UPC, EAN)?

How RocoSearch Handles Product Codes

RocoSearch reads every product's SKU and barcode, and every variation's, as soon as you activate it. There's nothing to switch on.

  • Typed any way. Codes are found with or without their spaces and dashes.
  • Variations included. A variation's code finds its product.
  • Barcodes too. The GTIN, UPC, EAN or ISBN field is searched alongside the SKU.
  • Never guessed. Typos in ordinary words are forgiven, but codes are matched exactly, because a near miss on a code is usually a different product.
  • Free. Product code search is part of the free plugin, with no limit on the number of products.

If shoppers on your store search by code more than by name, you can make codes count for more. In Search > Settings, move Product codes (SKU) and barcodes further right.

Check It Worked

Run the one-minute test again: the full SKU, the SKU without its dash, and a variation's SKU. Each should now bring up the right product, first.

Make Every Product Code Findable

Install RocoSearch free and let shoppers search by SKU, barcode and variation code, however they type it.

Free forever. No credit card. Nothing locked.