• Resolved sjrinehart

    (@sjrinehart)


    Hello!

    Am I able to limit only the dropdown to 5 products, but when the search icon is clicked, all of the products show up?

    Along with that – is there functionality in place yet to have a link on the dropdown after the first 5 items to “View All Results”?

    I’m using version 1.22 of this plugin.

    Thanks!

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

    (@mihail-barinov)

    Hi,

    By default there is no such option.

    But if really need this feature I can help you to implement it.
    There will be needed some code changes.

    Thread Starter sjrinehart

    (@sjrinehart)

    Thank you for your reply!

    I’m willing to make code changes if you’re able to provide some instructions on what to do.

    Plugin Author ILLID

    (@mihail-barinov)

    Open assets/js/common.js file, find line

    //html += '<li class="aws_result_item aws_search_more"><a href="' + opts.siteUrl + '/?s=' + searchFor + '&post_type=product">View all</a></li>';

    and replace it with

    html += '<li class="aws_result_item aws_search_more"><a href="' + document.location.origin + '/?s=' + searchFor + '&post_type=product&type_aws=true">View All Results</a></li>';

    Thread Starter sjrinehart

    (@sjrinehart)

    Thanks! That shows the “view all results” link great.

    Is there a way I can limit the amount of products that show in the dropdown, but show all of the products on the results page?

    Thanks again!

    Plugin Author ILLID

    (@mihail-barinov)

    Yes, this simply can be done by changing ‘Max number of results’ option from Adv. Woo Search -> Search Results settings page.

    Thread Starter sjrinehart

    (@sjrinehart)

    This works for the dropdown, but the search results page itself still only shows 5, when I want it to show all results (Example: dropdown shows 5, search results page shows 50 results)

    Thread Starter sjrinehart

    (@sjrinehart)

    Never mind! I turned off ‘cache results’ and this fixed itself.

    Thanks so much for your help!

    Thread Starter sjrinehart

    (@sjrinehart)

    Actually, now that I have ‘cache results turned off, I never get the same search results each time I search. Is there any way I can keep that ‘on’ but show all of the results on the search results page?

    And is there a way to search for a product sku as the #1 priority? I have it ordered correctly under ‘Active sources Change order by drag&drop’ but that doesn’t seem to be working properly for all skus. Is there anything else I need to set?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘View All Results, Max Results’ is closed to new replies.