Support » Plugin: FiboSearch - Ajax Search for WooCommerce » Submit button click

  • Resolved brandmadeconsult

    (@brandmadeconsult)


    Hi, I want to change the behaviour of the submit button of the plugin. Currently by typing a string and clicking on the submit button, I am taken to first search result product. This is not how search submit button should work. I should be taken to my search results page. How do I configure that?

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

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

    (@matczar)

    If, after entering the phrase and finding the results, you do not click the “down” button and immediately press “ENTER”, you will be redirected to the search page – I checked it and this is how it works on your website.

    If you go to one of the found products with the “down” key and press “ENTER”, its page will open.

    If the search engine finds only one product, you will be redirected to the product page instead of the search results page.

    By the way: You have JavaScript errors due to the minimization of scripts that are done by the optimization plugin.

    Thread Starter brandmadeconsult

    (@brandmadeconsult)

    Hi, thanks for pointing out the javascript errors. I will get it rectified.

    As far as the search is concerned, please help me understand a few use cases:
    1. When I type necklace- I am redirected to the first necklace, rather than the search page with all necklaces(tags, categories)

    2. when I type dangler and click submit- I am redirected to search page saying no results found, whereas I have products in category danglers, tags as danglers.

    Is there something to do with setting? I feel there is something not right with the search configuration. I want the search string to pickup from category, tag, product name, description, short description.

    Plugin Author Mateusz Czardybon

    (@matczar)

    Let me know when you turn off the script minimization plugin, because without it, it’s difficult for me to do some tests on your website.

    Thread Starter brandmadeconsult

    (@brandmadeconsult)

    Hi Mateusz, the errors are resolved now. Could you please do the tests now?

    Plugin Author Mateusz Czardybon

    (@matczar)

    Here are the results for the phrase “necklace”: https://dl.dropboxusercontent.com/s/gpapc54vqfyn1qu/2021-02-17_16-14-49.png

    – 2 categories found (mark 3)
    – 1 tag found (mark 2)
    – only one product was found (mark 1) – when you press the key or “ENTER” it will take you to the search page with one product. When there is one product on the search page, WooCommerce redirects to it immediately.

    Categories and tags aren’t shown on the search results page by default, so these don’t count against the number of results found – only products count, and here we only have one.

    When you search for “dangler”, there are no products directly related to that phrase – there are only categories and tags and they are displayed in the search results.

    What you want to achieve is to search for products by the category name they belong to. This functionality is only available in the Pro version: https://ajaxsearch.pro/

    Thread Starter brandmadeconsult

    (@brandmadeconsult)

    So, in the free version what are the fields where it will search ?

    Plugin Author Mateusz Czardybon

    (@matczar)

    In the free version, these product fields are searched: title, SKU, a short description, and description.

    You can search tags and categories (such as “necklaces” in your store), but the results will include the tags and categories found, not products that are related to them.

    Thread Starter brandmadeconsult

    (@brandmadeconsult)

    Thanks for the clarification Mateusz, great help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Submit button click’ is closed to new replies.