• Hi, I can’t figure out how I should get relevanssi to display the store name.
    Example: If I type in the search engine “pet products” I would like to see a list of products and also a list of the sellers of the site that offer those products.
    Something like what the “AWS” plugin does. To be clearer I leave a link to the function I am looking for.

    https://advanced-woo-search.com/features/dokan-plugin-support/

    Thanks!

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

    (@msaari)

    How does this work in WP terms? Are stores users and authors of the products? If that’s the case, then this is fairly straightforward.

    You can use the relevanssi_hits_filter hook to go through all the posts in the results. You can take the author of each post ($post->post_author has the author ID), store it in a global variable and then display that list the way you want on the search results template.

    Thread Starter pctec

    (@pctec)

    Thank you very much for your quick response. I see that relevanssi is more oriented to programmers and not to the common user, who are far away from having to do everything by code.

    Plugin Author Mikko Saari

    (@msaari)

    95% of Relevanssi use cases work out well without code, but the rest is built with developers in mind, providing very comprehensive coding support. It’s impossible to provide no-code solutions for all possible fringe cases, especially as what you want here is something that goes beyond the scope of Relevanssi – Relevanssi couldn’t modify your search results template in any case, so either it takes code or your theme would have to have this feature built-in (it could, with or without Relevanssi, so perhaps you can ask your theme’s developers to add this feature?).

    Plugin Author Mikko Saari

    (@msaari)

    If you are interested in getting this feature, consider hiring a developer – a skilled WP developer should be able to do this in 30 minutes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘does relevanssi work with multi-vendor plugins?’ is closed to new replies.