Bastien

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Behaviour when grouping results #3458

    Participant

    Hi Ernest,

    Thanks a lot for your reply. I totally understand your problematic to select what to include in your todo list. It’s very nice to take my needs into account.

    I join a fake screenshot of what I have in mind. You will see the categories and products separators in dark red. It’s like some other ecommerce searches, to show the results by type: products, categories, …

    A last question: does Ajax Search Pro have some hook that I can catch with javascript with for example: $(document).on(‘asp-resultsloaded’, function() { … });

    I ask because I use another plugin for faceted search which provide 2 hooks available in javascript, for refresh start and when facets have been loaded. It’s really useful to interact with the facets or the results direcly via jquery.

    In my case, hooks usable in JS could solve my problem, even if it’s not the best way for performances (regenerate the results ordering).

    Thanks
    Have a nice day,

    Bastien

    Attachments:
    You must be logged in to view attached files.
    in reply to: Behaviour when grouping results #3454

    Participant

    Hi,

    Just to add something. I saw that Brand is considered as a taxonomy by the faceted search plugin I have on my website.

    Thanks for your help.

    Bastien

    in reply to: Behaviour when grouping results #3449

    Participant

    Hi Ernest,

    Brand is an attribute of products in woocommerce.

    If I don’t group, I can see the attribute “Brand” as the first result between four.

    If I group, as it’s not a category nor a product nor a post type, it disappears.

    I don’t if there is a way to post filter the results. I saw an example with the categories titles in the results titles with the hook asp_pagepost_results.

    I thoughabout a solution with a hook: parsing the results and hash the url of the link of each result in order to add a line of the type of results when I see different groups (categories, attributes, products, …).

    Thanks for your reply.

    Have a nice day,
    Bastien

    in reply to: Behaviour not to be redirected when searching #3436

    Participant

    Hi,

    I have moved my other question in a specific post.

    Thanks

    Bastien

    • This reply was modified 4 years, 11 months ago by  Bastien.
    in reply to: Behaviour not to be redirected when searching #3435

    Participant

    Hi Ernest,

    I think you are right as there is a plugin or the theme which is interfering with this event.

    Your snippet works perfectly. Thanks for it and for the awesome support.

    Best,
    Bastien

Viewing 5 posts - 1 through 5 (of 5 total)