• Resolved jacobx

    (@jacobx)



    I use the WPC Variation Swatches for WooCommerce plugin thanks to which I can make many variants on one product and separate them in the store so that the user sees many auctions in different colors. Unfortunately, when I enter a phrase in the fibosearch search engine, it searches but does not show all variants, only the main one, which may make the user think that we do not have other colors to choose from. Is it possible to turn it on somehow so that variants also appear in the search?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jacobx

    (@jacobx)

    Additionally, I use the Variations as Single Product for WooCommerce plugin to separate the auctions.

    Plugin Support Marta

    (@martadella)

    Hi jacobx,

    By default, FiboSearch searches only for main products. If you would like to show variations in the autocomplete, use the following code:

    add_filter( 'dgwt/wcas/search_query/args', function( $args ) {
    $args['post_type'] = array( 'product', 'product_variation' );
    return $args;
    } );

    You have two ways to add this code to your theme:
    1. Open the functions.php file in your child theme and add the code at the end
    2. or install the Code Snippets plugin and apply this code as a snippet.

    I hope this helps!

    Regards,
    Marta

    Thread Starter jacobx

    (@jacobx)

    it worked very well, thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘no variants in search’ is closed to new replies.