Forum Replies Created
-
AuthorPosts
-
Bastien
ParticipantHi 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
Bastien
ParticipantHi,
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
Bastien
ParticipantHi 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,
BastienBastien
ParticipantHi,
I have moved my other question in a specific post.
Thanks
Bastien
-
This reply was modified 11 years, 4 months ago by
Bastien.
Bastien
ParticipantHi 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 -
This reply was modified 11 years, 4 months ago by
-
AuthorPosts