Step by step filter that excludes categories
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from felix.rieger on May 28, 2024, 16:15Hello there,
I am currently trying to set up a step by step filter for an online shop.
The goal is to create a filter that first shows a list of car brands from which you can select one. After that you should only get the list of car models from this specific brand and so on.
At the moment I have two categories of car brands where each only contains products for this brand. Each product then holds the attribute which describes the car model.
This is the shortcode I am currently using:
add_action('woocommerce_before_shop_loop', function () {
if (!WOOF_REQUEST::isset('woof_before_shop_loop_done')) {
echo do_shortcode('[woof_step autosubmit=1 filter_type=2 is_ajax=1 by_step="product_cat,pa__automodell,pa__baujahr"]');When I now use the filter I select a car brand but in the next step I also get shown the models from the other brand and I cannot figure out how to fix this.
Looking forward to your response,
Best regards,
Felix
Hello there,
I am currently trying to set up a step by step filter for an online shop.
The goal is to create a filter that first shows a list of car brands from which you can select one. After that you should only get the list of car models from this specific brand and so on.
At the moment I have two categories of car brands where each only contains products for this brand. Each product then holds the attribute which describes the car model.
This is the shortcode I am currently using:
add_action('woocommerce_before_shop_loop', function () {
if (!WOOF_REQUEST::isset('woof_before_shop_loop_done')) {
echo do_shortcode('[woof_step autosubmit=1 filter_type=2 is_ajax=1 by_step="product_cat,pa__automodell,pa__baujahr"]');
When I now use the filter I select a car brand but in the next step I also get shown the models from the other brand and I cannot figure out how to fix this.
Looking forward to your response,
Best regards,
Felix
Quote from Pablo Borysenco on May 29, 2024, 12:06Hello Felix
Please drop me exact link to the issue
Hello Felix
Please drop me exact link to the issue
Quote from felix.rieger on June 4, 2024, 08:55Hello Pablo,
This is the link to my current test environment: https://store1.towsystem.de/shop/
You can first pick the car brand, then the car model (They are currently cryptic IDs) and after that the production period.
The problem is that after picking the brand, all of the car models are shown. Even the ones of another car brand which should not happen. I want it to be like this: You pick the car brand and after that you only get shown car models from this specific brand as I already explained above.Hope this helped, thank you.
Hello Pablo,
This is the link to my current test environment: https://store1.towsystem.de/shop/
You can first pick the car brand, then the car model (They are currently cryptic IDs) and after that the production period.
The problem is that after picking the brand, all of the car models are shown. Even the ones of another car brand which should not happen. I want it to be like this: You pick the car brand and after that you only get shown car models from this specific brand as I already explained above.
Hope this helped, thank you.
Quote from Pablo Borysenco on June 4, 2024, 11:28Hello
Please check these options - https://share.pluginus.net/image/i20240604122400.png - Then the filter dynamically calculates terms depending on the current search. And filters with zero counters will not be active.
Hiding terms with a zero counter is only possible in the paid version - https://share.pluginus.net/image/i20240604122814.png
Hello
Please check these options - https://share.pluginus.net/image/i20240604122400.png - Then the filter dynamically calculates terms depending on the current search. And filters with zero counters will not be active.
Hiding terms with a zero counter is only possible in the paid version - https://share.pluginus.net/image/i20240604122814.png
Quote from felix.rieger on June 4, 2024, 11:56Hello Pablo,
Thank you very much for your help. This should solve my problem.
My final questions now is if it is possible to implement this whole filter into the homepage of the webshop and after the filters are set you get forwarded to the page with the list of products? I have not found any information concerning this topic. Can I paste the shortcode into the file that contains the code of the homepage and display the filter this way?
I did not purchase the premium version yet because I wanted to make sure that everything works fine. If the question above is possible, I will buy the premium version.
Regards,
Felix
Hello Pablo,
Thank you very much for your help. This should solve my problem.
My final questions now is if it is possible to implement this whole filter into the homepage of the webshop and after the filters are set you get forwarded to the page with the list of products? I have not found any information concerning this topic. Can I paste the shortcode into the file that contains the code of the homepage and display the filter this way?
I did not purchase the premium version yet because I wanted to make sure that everything works fine. If the question above is possible, I will buy the premium version.
Regards,
Felix
Quote from Pablo Borysenco on June 4, 2024, 12:22yes. insert this shortcode on the main page
Or you can add it in php: echo do_shortcode("[YOUR SHORTCODE]");
yes. insert this shortcode on the main page
Or you can add it in php: echo do_shortcode("[YOUR SHORTCODE]");
Quote from felix.rieger on June 4, 2024, 12:24Perfect. Thank you very much for your support :)
Perfect. Thank you very much for your support :)