Forum Replies Created
-
AuthorPosts
-
March 3, 2021 at 11:18 am in reply to: Live Filter on Posts Widget on Category Page not working. #31942
yonahs61332
ParticipantThat worked
Thanks
March 3, 2021 at 10:37 am in reply to: Live Filter on Posts Widget on Category Page not working. #31936yonahs61332
Participantand just to clarify, when I do the same thing on a page with no parameter the filter works perfectly
March 3, 2021 at 10:25 am in reply to: Live Filter on Posts Widget on Category Page not working. #31933yonahs61332
ParticipantI have tried that and its still not working:
https://www.pharmashaul.com/test-page/?p_asid=1&p_asp_data=1¤t_page_id=221&woo_currency=ILS&qtranslate_lang=0&filters_changed=1&filters_initial=0&aspf%5B_price__5%5D%5Blower%5D=0.00&aspf%5B_price__5%5D%5Bupper%5D=1000.00&asp_gen%5B%5D=title&customset%5B%5D=product&termset%5Bproduct_cat%5D%5B%5D=17&asp_s=&asp_id=1This link when first loaded shows the correct 3 products that belong in the category, but if I then change the category in the filter on the right side. and remove T15/C3 and add T10//C2 only as in the attached image, i still get the 3 results from T15/C3 + the new one for T10/C2
(I have add a Category element to illustrate the problem on the page)Its as if the parameters in the Querystring are always applied even if I undo them in the filter on the page.
I only want the parameters to set the initial display, but after that the Filter should take overMarch 2, 2021 at 3:46 pm in reply to: Live Filter on Posts Widget on Category Page not working. #31904yonahs61332
ParticipantOK, That is not a problem but the filter state is not working:
This is search id 1
The Console gives me this link:
https://www.pharmashaul.com/test-page/?p_asid=1&p_asp_data=1¤t_page_id=221&woo_currency=ILS&qtranslate_lang=0&filters_changed=1&filters_initial=0&aspf%5B_price__5%5D%5Blower%5D=0.00&aspf%5B_price__5%5D%5Bupper%5D=1000.00&asp_gen%5B%5D=title&customset%5B%5D=product&termset%5Bproduct_cat%5D%5B%5D=19When I load the page, I get results that include (Lemon Kush) which is not in that category (it is in T15 / C3). (this is the the link for T20/C5)
Comparing this to what happens when I load the page without any parameters it works fine. If I check off T20/C5 I get 7 results and T15/C3 gives me the 8th item
March 1, 2021 at 4:46 pm in reply to: Live Filter on Posts Widget on Category Page not working. #31869yonahs61332
ParticipantI took a look at the “filter state” tutorial and my result is this long (and ugly) link:
https://www.pharmashaul.com/test-page/?p_asid=1&p_asp_data=1¤t_page_id=221&woo_currency=ILS&qtranslate_lang=0&filters_changed=1&filters_initial=0&aspf%5Bmorphology__2%5D%5B0%5D=Hybrid&aspf%5Bmorphology__2%5D%5B1%5D=Indica&aspf%5Bmorphology__2%5D%5B2%5D=Sativa&aspf%5Bcountry__3%5D%5B0%5D=Israel&aspf%5Bcountry__3%5D%5B1%5D=Canada&aspf%5Bgrower__4%5D%5B0%5D=Aphria%2FCanndoc&aspf%5Bgrower__4%5D%5B1%5D=Canndoc&aspf%5Bgrower__4%5D%5B2%5D=Organigram&aspf%5Bgrower__4%5D%5B3%5D=Peace%20Naturals%2FCronos&aspf%5Bgrower__4%5D%5B4%5D=Seach&aspf%5Bgrower__4%5D%5B5%5D=Teva%20Adir&aspf%5Bgrower__4%5D%5B6%5D=Univo&aspf%5B_price__5%5D%5Blower%5D=150.00&aspf%5B_price__5%5D%5Bupper%5D=300.00&asp_gen%5B%5D=title&customset%5B%5D=product&termset%5Bproduct_cat%5D%5B%5D=19Now, the only part of the link that I need is the Product Category number (19 here). The rest of the checkboxes are defined in the settings.
Can I use a shorter link to only define that one checkboxMarch 1, 2021 at 4:04 pm in reply to: Live Filter on Posts Widget on Category Page not working. #31867yonahs61332
ParticipantI believe the way to do it is using the “asp_query_args” filter, but I am not sure what to do.
That way, the Category part of the query would be filtered (thanks to the querystring parameters) before the widget processes the other checkboxes in the filterCan you give me some quick code on how to do it?
Thanks
March 1, 2021 at 3:27 pm in reply to: Live Filter on Posts Widget on Category Page not working. #31865yonahs61332
ParticipantDo you have a suggestion on how I can get around this?
I don’t understand how I can make this work without using the Category page as that is the base of my query.
Can your Search filter take parameters (ie check a box) based on the Querystring?yonahs61332
ParticipantThanks, that worked.
yonahs61332
ParticipantThanks, that removed the error, but also removed a function that we want.
We also want to be see a “Category” box when the term searched for matches a category
yonahs61332
ParticipantYou cannot access this content.
yonahs61332
ParticipantOk, I have solved my problem, I have customized the Horizontal template and the shortcode HTML is there, but there is still a problem and the solution seems simple enough, but I need some help implementing it:
https://support.yotpo.com/en/article/loading-yotpo-with-ajaxHow can I run this javascript widget at the right time without your plugin?
Thanks
-
This reply was modified 5 years, 8 months ago by
yonahs61332.
-
This reply was modified 5 years, 8 months ago by
-
AuthorPosts