Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Doubt about preselected subcategory on archive page and problem
This topic contains 22 replies, has 2 voices, and was last updated by jordi82 2 years, 1 month ago.
- AuthorPosts
- March 4, 2021 at 4:43 pm #32010
See this video so you can see better my last message: https://www.loom.com/share/aae7d318c54248ca8c0bf413248c4b15
As you can see in the video, on “Legumbres, pasta y semillas”, should only show 1 product, but if I clic on other “Alimentación” subcategory in megamenu, and change to “Legumbres, pasta y semillas” using radio button, appears 5 products instead of 1…the same for the other subcategory
Regards!
March 5, 2021 at 10:35 am #32021Hi!
I think I know what is causing it, it came up just yesterday, I believe this is the same issue.
Can you please try getting the state URLs via this function call in the browser console:
var id=1; ASP.api(id, 'getStateURL').replace('?p_asid=', '?asp_ls=&p_asid=')+'&asp_s=&asp_id='+id;
..and then replace it within the menus, it should resolve the problem.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 8, 2021 at 12:36 pm #32077Hi Ernest!
Correct now it works 🙂
Regarding my other question, is it possible for the radio buttons to have an option that is “See all”? Or call her in any way
It is to avoid to name the parent category, since it is repeated in the header.
Regards!
March 8, 2021 at 2:47 pm #32082Sure! It should be possible via this interface: https://i.imgur.com/AdN1VSR.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 9, 2021 at 10:24 am #32086Hi Ernest!
Many thanks!
Regards!
April 7, 2021 at 2:58 pm #32599Hi again Ernest!
I reopen this thread again because for some reason now the url you sent me to filter by category doesn’t works:
var id=1;
ASP.api(id, ‘getStateURL’).replace(‘?p_asid=’, ‘?asp_ls=&p_asid=’)+’&asp_s=&asp_id=’+id;I’m trying to add a new category and when I used this url to filter correctly no works. I am attaching a video so you can see what I mean.
https://www.loom.com/share/79123149baa64c0fbc8569890195d3ebI hope you can help me, regards!
April 8, 2021 at 12:05 pm #32609Hi!
Try this variation:
Best,var id=1; ASP.api(id, 1, 'getStateURL').replace('?p_asid=', '?asp_ls=&p_asid=')+'&asp_s=&asp_id='+id;
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 8, 2021 at 12:13 pm #32611Hi Ernest!
It works many thanks 🙂
Have a nice day, regards!
- AuthorPosts
You must be logged in to reply to this topic.