Continue reading Indexing product variation SKUs for main product

Indexing product variation SKUs for main product

Relevanssi can index product and product variation SKUs for WooCommerce products: just add _sku to list of custom fields to index. However, if you want to find the main product when searching for the product variation SKU, you need some extra code. Just add this function to the theme functions.php and rebuild the index: add_filter(’relevanssi_content_to_index’,…

Read more Indexing product variation SKUs for main product 10 Comments on Indexing product variation SKUs for main product
Continue reading Hidden WooCommerce products in search

Hidden WooCommerce products in search

Relevanssi by default shows out-of-stock and excluded from catalog WooCommerce products in the search results, but hides those set to excluded from search (before 2.2.2 and 4.1.2 the default behaviour was to show all products). It is quite easy to make Relevanssi not to display hidden products in the results. The best way is to…

Read more Hidden WooCommerce products in search 21 Comments on Hidden WooCommerce products in search
Continue reading WooCommerce popularity and price sorting

WooCommerce popularity and price sorting

Many WooCommerce users use search sorting that allows users to sort by popularity or price. Unfortunately while Relevanssi works fine with WooCommerce, those sorts do not work. Relevanssi doesn’t know about price or popularity, and the sorting assumes there’s default WP search underneath. Relevanssi doesn’t do meta field sorting as easily as the default WP…

Read more WooCommerce popularity and price sorting 35 Comments on WooCommerce popularity and price sorting