Doubt about preselected subcategory on archive page and problem
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Doubt about preselected subcategory on archive page and problem
- This topic has 22 replies, 2 voices, and was last updated 5 years, 3 months ago by
jordi82.
-
AuthorPosts
-
March 4, 2021 at 4:43 pm #32010
jordi82
ParticipantSee 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 #32021Ernest Marcinko
KeymasterHi!
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.
March 8, 2021 at 12:36 pm #32077jordi82
ParticipantHi 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 #32082Ernest Marcinko
KeymasterSure! It should be possible via this interface: https://i.imgur.com/AdN1VSR.png
March 9, 2021 at 10:24 am #32086jordi82
ParticipantHi Ernest!
Many thanks!
Regards!
April 7, 2021 at 2:58 pm #32599jordi82
ParticipantHi 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 #32609Ernest Marcinko
KeymasterHi!
Try this variation:
var id=1; ASP.api(id, 1, 'getStateURL').replace('?p_asid=', '?asp_ls=&p_asid=')+'&asp_s=&asp_id='+id;April 8, 2021 at 12:13 pm #32611jordi82
ParticipantHi Ernest!
It works many thanks 🙂
Have a nice day, regards!
-
AuthorPosts
- You must be logged in to reply to this topic.