Filter for child categories not working
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 cjhill44 on May 27, 2020, 14:59Hi There,
The product filter does not seem to be working properly.
I have product set up under categories and sub categories such as…
Baths (Main category)
– Single ended bath (Child category)
– Double ended bath
– Bath screens and panelsSo if i check ‘Baths’, great I can see all the products under that category.
When I want to view only bath screens and panels I then check ‘Baths Screens and panels’ with ‘Baths’ still checked.
This then still shows me everything within the main category and not just the bath screens and panels.
How can I get the filter to work so that it will only show the child category that has been ticked?
A perfect example of this is demonstrated on your demo site, where I have selected to view a slip dress, however it shows me every product within the main clothing category
https://demo.products-filter.com/?swoof=1&product_cat=clothing,wooman,slip-dress
Hi There,
The product filter does not seem to be working properly.
I have product set up under categories and sub categories such as…
Baths (Main category)
– Single ended bath (Child category)
– Double ended bath
– Bath screens and panels
So if i check ‘Baths’, great I can see all the products under that category.
When I want to view only bath screens and panels I then check ‘Baths Screens and panels’ with ‘Baths’ still checked.
This then still shows me everything within the main category and not just the bath screens and panels.
How can I get the filter to work so that it will only show the child category that has been ticked?
A perfect example of this is demonstrated on your demo site, where I have selected to view a slip dress, however it shows me every product within the main clothing category
https://demo.products-filter.com/?swoof=1&product_cat=clothing,wooman,slip-dress
Quote from cjhill44 on May 28, 2020, 10:48Any ideas on this? It's causing a real issue for me.
Any ideas on this? It's causing a real issue for me.
Quote from Pablo Borysenco on May 28, 2020, 12:21Hello
Please use comparison logic AND - https://c2n.me/47JNT0q.png
Hello
Please use comparison logic AND - https://c2n.me/47JNT0q.png
Quote from cjhill44 on May 28, 2020, 12:34Thanks I just set the categories section to AND
This made no difference, still shows me all the products from the main and child categories
Thanks I just set the categories section to AND
This made no difference, still shows me all the products from the main and child categories
Quote from Pablo Borysenco on May 29, 2020, 11:19Hello
Please drop me exact link to the issue
Hello
Please drop me exact link to the issue
Quote from cjhill44 on May 29, 2020, 11:36Here is the link to my dev site...
You'll see I have selected 'Baths' and 'Bath panels and screens' but i can still see all baths. The same happens for all other products and their sub-categories
Here is the link to my dev site...
You'll see I have selected 'Baths' and 'Bath panels and screens' but i can still see all baths. The same happens for all other products and their sub-categories
Quote from Pablo Borysenco on June 1, 2020, 11:17Hello
Try to deactivate all plugins except woo+woof and do test.
If no luck - drop me wp-admin access + FTP I will check it
Hello
Try to deactivate all plugins except woo+woof and do test.
If no luck - drop me wp-admin access + FTP I will check it
Quote from cjhill44 on June 1, 2020, 12:37Hi,
I have tried this with no success so I have sent details via the 'private data for this topic' link, hope you've received it?
As a test, I turned on 'Ajaxify the shop' and the search results did update accordingly but the page went into a horrible 1 column display and it failed to load the product images, so i suspect that feature is not compatible with my theme. Changing theme is not an option but there must be another solution right?
Thanks,
Hi,
I have tried this with no success so I have sent details via the 'private data for this topic' link, hope you've received it?
As a test, I turned on 'Ajaxify the shop' and the search results did update accordingly but the page went into a horrible 1 column display and it failed to load the product images, so i suspect that feature is not compatible with my theme. Changing theme is not an option but there must be another solution right?
Thanks,
Quote from Pablo Borysenco on June 2, 2020, 10:53Hello
Unfortunately, without FTP I can’t investigate this.
Hello
Unfortunately, without FTP I can’t investigate this.
Quote from cjhill44 on June 8, 2020, 16:22Hi,
I have managed to resolve the initial query. It was some code in the functions.php that was causing the filtering issue.
However this has now raised another question...
As you know, I have product set up under categories and sub categories such as…
Baths (Main category)
– Single ended bath (Child category)
– Double ended bath
– Bath screens and panelsSo if i check ‘Baths’ I can see all the products under that category.
However if i check 'bath screens and panels' and 'double ended baths' i would expect to see all 'bath screens and panels' as well as 'double ended baths'
Instead this returns a result saying there are no products to be found. I have search filtering logic set to 'AND'.
Any ideas?
Hi,
I have managed to resolve the initial query. It was some code in the functions.php that was causing the filtering issue.
However this has now raised another question...
As you know, I have product set up under categories and sub categories such as…
Baths (Main category)
– Single ended bath (Child category)
– Double ended bath
– Bath screens and panels
So if i check ‘Baths’ I can see all the products under that category.
However if i check 'bath screens and panels' and 'double ended baths' i would expect to see all 'bath screens and panels' as well as 'double ended baths'
Instead this returns a result saying there are no products to be found. I have search filtering logic set to 'AND'.
Any ideas?
Quote from Pablo Borysenco on June 9, 2020, 11:49Hello
It seems correct -You don’t have a product that have these two categories - 'double ended baths' AND 'bath screens and panels'
Hello
It seems correct -You don’t have a product that have these two categories - 'double ended baths' AND 'bath screens and panels'
Quote from cjhill44 on June 9, 2020, 13:27Hi,
I understand that I don't have any products set that use both these categories.
The way its working at the moment, the search query is saying..."within all baths, show me all the products that have both the categories 'double ended baths' and 'bath screens and panels' assigned to them"....which of course none do.
What I want the search query to say is..."within all baths, show me all the products that have the category 'double ended baths' and the products that have 'bath screens and panels' assigned to them".
I have roughly 3 double ended baths and 12 bath screens and panels, so I would expect to see a result of 15 products, displaying products from both categories, not a result of 0 because the products are not assigned to both categories.
Hi,
I understand that I don't have any products set that use both these categories.
The way its working at the moment, the search query is saying..."within all baths, show me all the products that have both the categories 'double ended baths' and 'bath screens and panels' assigned to them"....which of course none do.
What I want the search query to say is..."within all baths, show me all the products that have the category 'double ended baths' and the products that have 'bath screens and panels' assigned to them".
I have roughly 3 double ended baths and 12 bath screens and panels, so I would expect to see a result of 15 products, displaying products from both categories, not a result of 0 because the products are not assigned to both categories.
Quote from Pablo Borysenco on June 10, 2020, 12:01Hello
In this case use logic "OR"
Show products that have 'double ended baths' OR 'bath screens and panels'
Hello
In this case use logic"OR"
Show products that have 'double ended baths' OR 'bath screens and panels'
Quote from cjhill44 on June 11, 2020, 12:29Hi,
The issue with using 'OR' is I then have the original problem where because I have 'All Baths' still selected the search query is giving me every product with this category assigned.
The ideal scenario is for me to click 'all baths' initially and it show me all baths - which works fine.
Then, if a user is browsing the website they are likely to drill down to look at the different types of baths, but probably wont think to uncheck 'All Baths'.I would expect to be able to drill down through the child categories so i could then click 'Double ended baths' and 'bath screens and panels' and it show me just the products with those tags.
If i set the logic to 'AND' i can drill down but only choose 1 child category to view.
Hi,
The issue with using 'OR' is I then have the original problem where because I have 'All Baths' still selected the search query is giving me every product with this category assigned.
The ideal scenario is for me to click 'all baths' initially and it show me all baths - which works fine.
Then, if a user is browsing the website they are likely to drill down to look at the different types of baths, but probably wont think to uncheck 'All Baths'.
I would expect to be able to drill down through the child categories so i could then click 'Double ended baths' and 'bath screens and panels' and it show me just the products with those tags.
If i set the logic to 'AND' i can drill down but only choose 1 child category to view.
Quote from Pablo Borysenco on June 12, 2020, 13:33Hello
The filter cannot, by custom logic, dynamically change the comparison logic depending on the selected category
Hello
The filter cannot, by custom logic, dynamically change the comparison logic depending on the selected category