Quote from Deleted user on February 17, 2024, 11:53
Hi, is there a way to apply a specific filter by default and cannot be cleared? For example, I have two shop pages: one for London, and one for Toronto. When a customer visit London page, I want to show only products that has “London” attribute. I know I can use the url like (example.com/london_shop/?swoof=1&pa_location=london) but I’m wondering if there is a way to use this url (example.com/london_shop) for the same result
Another issue with adding the filter to the url is if I clear the filter on that page, it will be cleared, right? Also in case if I want to use a different filter on url such as (example.com/london_shop/?swoof=1&pa_color=red) I want to show both filters applied (location=london & color=red)
I found [woof_products taxonomies=pa_location:358] works but unfortunately, I have to use WooCommerce product block for a specific design, so I can’t use [woof_products] I was hoping may be there is a shortcode that can apply a filter permanent on this page. Like when I use [woof tax_exclude=’pa_location’], can I set a default value for pa_location in this shortcode that is not cleared? I checked shortcodes but couldn’t find one.
Thanks,
Hi, is there a way to apply a specific filter by default and cannot be cleared? For example, I have two shop pages: one for London, and one for Toronto. When a customer visit London page, I want to show only products that has “London” attribute. I know I can use the url like (example.com/london_shop/?swoof=1&pa_location=london) but I’m wondering if there is a way to use this url (example.com/london_shop) for the same result
Another issue with adding the filter to the url is if I clear the filter on that page, it will be cleared, right? Also in case if I want to use a different filter on url such as (example.com/london_shop/?swoof=1&pa_color=red) I want to show both filters applied (location=london & color=red)
I found [woof_products taxonomies=pa_location:358] works but unfortunately, I have to use WooCommerce product block for a specific design, so I can’t use [woof_products] I was hoping may be there is a shortcode that can apply a filter permanent on this page. Like when I use [woof tax_exclude=’pa_location’], can I set a default value for pa_location in this shortcode that is not cleared? I checked shortcodes but couldn’t find one.
Thanks,