• How can we go about displaying the variation verse product sku in the search results?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Sorry, but showing product variations in search results available only in pro plugin version. But searching across variable products content available in both plugin versions.

    Thanks!

    • This reply was modified 6 years, 8 months ago by ILLID.
    Thread Starter isilon

    (@rsreese)

    We have installed the pro version as the previously mentioned URL. First, it is including results from our table in the search which we would like to disable. Secondly, it is still displaying the product verse variant sku in the results as well. e.g. search for scf200db and it returns fbtbde but should return scf200db.

    Thread Starter isilon

    (@rsreese)

    Were able to turn off the excess description content from the variants by disabling “Show Product variations”. Still have not figured out how to display the variant verse product sku in the results.

    Thread Starter isilon

    (@rsreese)

    I have been looking through the code in order to determine where the product sku is being called verse the variant sku when returning results. I see that both products and variants are defined as products in keeping up with my example.

    In our table, the product is:
    fbtbde sku product 1 1 visible
    And a variant is:
    scf200db sku product 1 1 visible
    So need to know what to edit in order to return the variant sku instead of the product AKA parent sku.

    Plugin Author ILLID

    (@mihail-barinov)

    So, as I understand, you want that product variations SKUs must be available for search ( not parent SKU )?

    Thread Starter isilon

    (@rsreese)

    We are already able to search for both the product and variant sku’s. Our issue is that a product sku is displayed in the results when searching for a variant sku. We do not mind if a product sku is displayed when searching for a product sku. But we need the variant sku to be shown in the results when searching for a variant sku ??

    Plugin Author ILLID

    (@mihail-barinov)

    The problem here is that you don’t see variant products separately in search results. You see main product and its variations as parameters ( like you see its tags and categories ).
    But, as I understand, you want that variation products displayed in search results as separated products with their own description and SKU. I am right?

    Thread Starter isilon

    (@rsreese)

    That’s correct. I would assume this is doable because each product and it’s respective variant have a unique sku in Woo, variants reference their respective parent sku in order to create relationships. Your code already searches and has a relationship as it returns the parent product sku. We’re just looking to say print the variant instead of the product sku when a variant sku or specific attribute is queried.

    So ultimately this feature would be something like “Treat variants as unique product results” but happy to take a quick fix until it’s baked in as well ??

    Plugin Author ILLID

    (@mihail-barinov)

    I will try to look what can be done.
    The problem here is that product variations stored in index table as content for parent product and have parent product id.
    If we want to show variations separately in search results that variations must be stored in index table with their unique ids.

    Thread Starter isilon

    (@rsreese)

    Makes sense. So yes, the variations would be stored independently verse being content for the parent but still reference the parent id so the original or this functionality can be supported.

    Definitely a cool feature as no other search function out there supports this!

    Thread Starter isilon

    (@rsreese)

    We are wondering how this feature request is coming along? Are there plans to implement?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Show variation instead of product sku’ is closed to new replies.