Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Url modification
- This topic has 7 replies, 2 voices, and was last updated 5 years ago by
Ernest Marcinko.
-
AuthorPosts
-
May 17, 2021 at 1:33 pm #33272
Tetramedic54
ParticipantHi,
im trying to make url links with certain filters selected, on my product page.I can not find any documentation for the filter selection
For the search bar, we can use : http://mywebsite.com/?asp_id=1&asp_s=phrasebut i want to have a selection in the filter for category taxonomy, for example see screenshot.
how can i modify the url to have this pre-selected?Thanks
May 17, 2021 at 1:40 pm #33274Ernest Marcinko
KeymasterHi!
This knowledge base will help you with that 🙂
May 18, 2021 at 8:01 pm #33301Tetramedic54
ParticipantHi,
Thanks for that link, I generated some links however, in all of them the “select all” box is always selected
I have tried disabling it, but even then, it selects them all..attached: what I want VS what i get
Cheers
May 20, 2021 at 8:25 am #33325Ernest Marcinko
KeymasterHi,
Well, in that case it will be selected by default unfortunately. If either of the links are selected, it gets selected as well automatically – so the user can quickly deselect everything.
May 20, 2021 at 6:22 pm #33343Tetramedic54
Participanthmm okay so how do i solve it ? I dont want to display everything, only the selected category.
Im not sure if you understand the problem, the filter does not work, if the “select all” is selected, it is showing all products not only the ones i have selected. Even disableing the “select all” it keeps showing all products
This way the filter is useless.
The annoying part is that it works if i select them manually everything works, but if i create an URL, the link doesn’t work correctly.
Could you send me an URL that works as an example, If i click it that it only shows Bighorn products,
Thank you
-
This reply was modified 5 years ago by
Tetramedic54.
-
This reply was modified 5 years ago by
Tetramedic54.
-
This reply was modified 5 years ago by
Tetramedic54.
May 21, 2021 at 8:46 am #33353Ernest Marcinko
KeymasterWell, the select all feature might not be possible to deselcted without making direct modifications to the core code I’m afraid.
The others however can be resolved. Because you have an elementor products widget, it needs to be triggered to reload on the page load event. Instead of that code, use this one to get the page URLs:
var id=1; ASP.api(id, 'getStateURL')+'&asp_s=&asp_id='+id;This will generate the URLs with a trigger, so once the page is loaded it will force an empty search to refresh the products list on the Elementor Products widget to display the correct ones.
May 21, 2021 at 10:09 am #33356Tetramedic54
ParticipantIt is a bit slower but it works! Thank you!
Great plugin! 5-Stars
May 21, 2021 at 10:12 am #33357Ernest Marcinko
KeymasterYou cannot access this content.
-
This reply was modified 5 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.