• Resolved pramodsalian

    (@pramodsalian)


    I need to sort by ascending order of search suggestion results box, how I can do it, please assist me?

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

    (@mihail-barinov)

    Hello,

    You can find several examples in this article.

    Please write to me if you didn’t find what you want or still have any questions.

    Regards

    Thread Starter pramodsalian

    (@pramodsalian)

    thanks i’ll check it

    Thread Starter pramodsalian

    (@pramodsalian)

    is there any way, we can move set of products from particular category to end of search results page. I mean putting products to last or end, not displaying at first of results page?

    Plugin Author ILLID

    (@mihail-barinov)

    Well, yes. You can use example of orderig by product category. Please read more here.

    Thread Starter pramodsalian

    (@pramodsalian)

    add_filter( ‘aws_search_results_products’, ‘my_aws_search_results_products’ );

    your above filter just sort the obtained results, I want my results should sort at sql level itself

    eg: search term is “toast”

    toast might match with 100 products, out of 100 products 60 products are manufactured by own company and 40 products are outside companies, so I need to move these 40 products end of the search results, how I can do this?
    Overall I need to give first preference to my products while buying

    Plugin Author ILLID

    (@mihail-barinov)

    Yes, you are right. This filter works for the products that previously were founded inside the plugin index table and ordered by relevance score.

    There is no way to order products at SQL level. But you can do the following – set plugins to display more products in search results ( default is 10 ) and then use sorting functions from the guide article. So by increasing the number of displayed products you can find all relevant products and then sort them as you want. Also this can be done via code level and still use less number of search results on the frontend.

    Regards

    Thread Starter pramodsalian

    (@pramodsalian)

    thanks for the update.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to sort the result’ is closed to new replies.