Support » Plugin: WooCommerce » How to search by product’s variable SKU?

  • Resolved sethbahookey


    Hi All,

    I have a number of products with different attributes, and each variation has it’s own SKU. The idea behind my site is that clients can look up the product by typing the SKU into a search box. Currently when I do this the search cannot find the product.

    I’m assuming the native search form in WP doesn’t look for product variable SKUs, so how would I set something like this up? I found this class WC_Product_Variation, but I’m not quite sure how to use it.

    Any help or suggestions would be greatly appreciated!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Shane Gowland


    We’re using this plugin. It’s a little old, but still works.

    Plugin Support Kenin


    Automattic Happiness Engineer

    There’s also a more updated plugin for this feature here:




    Thank you so much!! I actually had a copy of the older one and at one point it stopped working so I switched over to Relevanssi. I just disabled that and tried this new version and it works. It even works with variable SKUs!!

    One question, when I search for a product through it’s variable SKU the site takes me to that product’s page, but it doesn’t have any of the attributes selected.

    Is there a way to set it up so that the attributes of that searched SKU come pre populated to the page? Any advice would be greatly appreciated!!

    Thanks again,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to search by product’s variable SKU?’ is closed to new replies.