• moh962008

    (@moh962008)


    Hello

    i have a problem with the variations , i have created a product with different variation and my developer added a new option for the variation , the title of the product will change depending on the variation clicked how ever relevance’s can only index the main title only , how ever the variation title are not indexing in the search
    you can check the product and understand my problem

    the main product title is ((Cooler Master MWE 750V2))
    and my variation title is (Cooler Master MWE 550 V2))

    only the ((Cooler Master MWE 750V2)) is indexing how ever ((Cooler Master MWE 550V2)) not indexing

    help me with that please

    2- how your plugin work with variation ? for example color variation the user should write the full product title then the color or how ?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    What have you done so far to include the variations? By default, Relevanssi does nothing with the variations, so if you’re not doing something, the variations will not show up.

    Variations do appear as a post type to index, but indexing them is generally not helpful, because WooCommerce themes only want to include products in the search, and variations are not meant to be searched by themselves.

    Here’s how you can include variation SKUs for the main product. This can be extended to include other parts of the variation post under the main product post, like titles or post content. That way searching for the variation content will bring up the main product in the search.

    Thread Starter moh962008

    (@moh962008)

    so the variation will not appear at the search bar because woocomerce want only to include products without variation ??

    ok how i can solve this problem !? it need customization or what?

    and what is this article ??? if i add this code what will i get ??

    for example i have product with title ((power bank with multiple color ))
    and i have 2 color variation red and white

    the user should search for what ?? and what is the result ? and does the search indexing the variation ?

    Plugin Author Mikko Saari

    (@msaari)

    Yes, WooCommerce themes in general only include products in the search. It is possible to change that, but it does require a lot of work, and you probably need to hire a developer to do that, and there’ll be complications.

    The code in the article will include the product variation SKU in the main product, so if you search for the variation SKU, the search will return the main product. That code can be modified to include other parts of the variation, so you could have it so that searching for the variation name will return the main product in the search. You can also add other information from the variations, like color. Modifying that code to suit your needs is something any WP developer should be able to do for you.

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

The topic ‘variation proplem’ is closed to new replies.