How to search Products by variation SKUs?
Indexing variation SKUs to the parent product
Last updated
Indexing variation SKUs to the parent product
Last updated
For this to work, make sure you have configured and using the index table engine - as well as the search in SKUs search is enabled.
By default, when the _sku field is selected, the plugin will index the product SKUs as well as the variation SKUs - but all separately. To associate the variation SKUs with the parent product as well, use the code below.
After adding the custom code, make sure to re-create the search index.
What is this, and where do I put this custom code?
After adding the custom code, make sure to re-create the search index.