Continue reading Flatsome

Flatsome

…can do. First, make sure the “Search Product SKU” setting in Flatsome is disabled. Then set Relevanssi to only index the products, not product variations, but make Relevanssi index variation SKUs for the main product. Then we need to modify the Flatsome Ajax Search function above like this: function rlv_flatsome_search_function(……for posts and pages. If the live search does not work Flatsome has a built-in live search that should work with Relevanssi without modifications, but in case it doesn’t (for example searching for partial SKUs doesn’t work correctly even though it works in the Relevanssi admin search), you can add……query matches a variation SKU, the product permalink is replaced with the variation permalink: add_filter( ‘post_type_link’, ‘rlv_wc_variation_permalink’, 10, 2 ); function rlv_wc_variation_permalink( $permalink, $post ) { global $flatsome_live_search_query, $wp_query; if ( empty( $flatsome_live_search_query ) && isset( $wp_query->query_vars[‘s’] ) ) { $flatsome_live_search_query = $wp_query->query_vars[‘s’]; } if ( ‘product’ === $post->post_type &&…

Read more Flatsome 0 Comment on Flatsome