Easy methods to Enable Search by Product SKU in WooCommerce

Would you want your customers to find a way to go looking in your WooCommerce products using a SKU code?

Because SKU codes uniquely discover your products, looking for them will help users quickly find exactly what they’re in search of. The challenge is that SKU search isn’t enabled in WooCommerce by default.

In this text, we’ll show you tips on how to enable search by product SKU in WooCommerce.

Why Enable Search by Product SKU in WooCommerce?

To run a successful WooCommerce store, it’s vital in your customers to simply find the products they need to buy. To make this straightforward, most eCommerce platforms use SKUs, or Stock Keeping Units, to uniquely discover each product.

If a customer knows the SKU for the product they need to buy, why not allow them to seek for the SKU to immediately find the right product in your store?

The issue is that WooCommerce SKUs are stored in custom fields, and these should not indexed or included in search results by default. Because of this, looking for the SKU won’t help.

Let’s take a take a look at tips on how to solve this problem by enabling users to go looking by SKU in WooCommerce using a product search plugin.

Easy methods to Enable Search by Product SKU in WooCommerce

The very first thing it is advisable to do is install and activate the SearchWP plugin. You’ll need at the very least the Pro plan to access WooCommerce integration. For more details, see our step-by-step guide on tips on how to install a WordPress plugin.

SearchWP is the best custom search plugin for WordPress and is utilized by over 30,000 web sites. It enables you to customize the search algorithm, add live Ajax seek for real-time results, and more.

Upon activation, it is advisable to visit the SearchWP » Settings page and switch to the ‘Support’ tab to enter your license key. You will discover it in your downloads area in your account on the SearchWP site.

Paste Your SearchWP License Key

Next, it is advisable to install and activate the WooCommerce Integration extension for SearchWP.

You’ll find this within the downloads area in your account on the SearchWP website, too. It’s best to install it as you’ll install every other WordPress plugin.

Install the WooCommerce Integration Extension

Now you’re able to customize the SearchWP search engine to index your product SKUs.

Simply go to the SearchWP » Settings page and be sure that you’re on the ‘Engines’ tab. Once there, it is advisable to click the ‘Sources & Settings’ button.

Click on the 'Sources & Settings' Button

This may bring up a popup where it is best to be sure that the checkbox next to ‘Products’ is checked. This may allow SearchWP to index your WooCommerce products.

Also, if you happen to’d also wish to include WooCommerce product reviews in your search results, then be sure that you check the ‘Comments’ box, too. That’s because product reviews are literally stored as comments in WooCommerce.

Check the Products and Comments Boxes

When you’ve done that, click on the ‘Done’ button to shut the popup and prepare so as to add the SKU search.

Now it is advisable to scroll all the way down to the ‘Products’ section. Notice that by default, the plugin will only take a look at the product title, content (description), slug, and excerpt (short description).

Click the 'Add/Remove Attributes' Button in the Products Section

You possibly can extend SearchWP’s reach to incorporate SKUs by clicking on the ‘Add/Remove Attributes’ button. This may bring up a popup where you possibly can include specific custom fields and taxonomies in searches.

You’ll must type ’SKU’ into the Custom Fields field and select the _sku option from the dropdown menu. This may add SKUs to WooCommerce search results pages.

Select _sku From the Custom Field Drop Down Menu

You possibly can now click the ‘Done’ button.

Notice that there’s now a recent section labeled ‘Custom Fields’ with the _sku field underneath.

Slide the SKU Relevance Slider to the Right

To start with, the relevance slider will likely be set all of the option to the left, which suggests that SKU search results will likely be given the bottom priority in search results.

Since SKUs are a very important option to find your products, it is best to move the _sku slider all of the option to the fitting, as you possibly can see above.

Once you’re done, go ahead and click on on the ‘Save Engines’ button at the highest of the screen to avoid wasting your settings.

Click the 'Save Engine' Button

SearchWP will then start rebuilding your search index within the background. It might take a number of minutes to finish, but after that, you’ll find a way to go looking your WooCommerce store by product SKU.

SearchWP will robotically use any search forms in your online store, so there isn’t any must take any additional steps if you’ve them in your site already.

Nonetheless, if it is advisable to add a search form, then see our step-by-step guide on tips on how to create a custom WordPress search form. This can even teach you tips on how to style the outcomes page using custom CSS.

Now you possibly can go to your WooCommerce store to check out the search feature.

In our demo store, the long sleeve tee has the SKU ‘woo-long-sleeve-tee.’ After we seek for that SKU, the right product is displayed.

Preview of Product SKU Search in WooCommerce

To learn more about improving search in your online store, see our guide on tips on how to make a wise WooCommerce product search.

We hope this tutorial helped you learn tips on how to enable product search by SKU in WooCommerce. You might also wish to learn tips on how to create a WooCommerce popup to extend sales, or try our list of the most effective WooCommerce plugins to grow your online store.

If you happen to liked this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can too find us on Twitter and Facebook.

Leave a Reply

Your email address will not be published. Required fields are marked *