PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

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 please
If 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.

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

Any ideas on this? It's causing a real issue for me.

Hello

Please use comparison logic AND -  https://c2n.me/47JNT0q.png

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

 

 

Hello

Please  drop me  exact  link to the  issue

Here is the link to my dev site...

http://imexuk.co/im2/all-products/?swoof=1&post_type=product&product_cat=all-baths,bath-panels-screens

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

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

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,

Hello

Unfortunately, without FTP I can’t investigate this.

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?

Hello

It seems correct -You don’t have a product that have these two categories - 'double ended baths'  AND  'bath screens and panels'

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.

Hello

In  this  case  use  logic"OR"

Show  products  that have   'double ended baths'  OR  'bath screens and panels'

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.

Hello

The filter cannot, by custom logic, dynamically change the comparison logic depending on the selected category