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

Problem with AND logic and 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 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.

Hello,

I've just bought 6 months of support, I'm not sure this is the right place to write for assistance.

 

This is my website:

https://dev.smarthomeneed.com/products

I'am having this issues:

  1. setup the filter logic to AND (i want the user to be able to select multiple categories in the categories filter (we renamed them"home applications"). In the backoffice I can only select OR, or NOT in logic. I also tried setting the AND logic in functions.php but it didn't work.
  2. When I select a categories I want the other attributes filter to reload their count (I already have set these functions in the WOOF settings) but right now they stay the same.
  3. I need to"divide" in two separate filter some categories. I want that four specific categories shows in the sidebar filter under the label"NEEDS" and all the others categories under another label"HOME APPLICATIONS"

I hope I was clear enough.

Thank you

Hello

  1. in functions.php but it didn't work. - Please  delete all your  customozation.  I can only select OR, or NOT in logic. -  AND appears only in a filter that allows you to select multiple values. Example: Checkbox
  2. I checked it. Everything seems to work correctly - https://c2n.me/47eNNaJ
  3. The plugin does not have such a feature

Ok thanks,

Settings the filter as checkbox enalbed the AND logic.

The recount is working but the parents count is wrong.

Example:

 

CATEGORY

  • sub category (0) <- this must show the total number of its children product but it always show 0
    • sub sub category (0)
    • sub sub category (2)
    • sub sub category (4)

This is a screen:

https://we.tl/t-b3Krd1UwWI

 

In top of that if we choose a filter with count = 1 and logic AND i'm not seeing 1 product but a lot of them.

You can try selecting:

NEED -> HOME WORK

AND

HOME APPLICATIONS -> ENERGY AND LIGHTING -> ENERGY MONITOR

 

 

Thank you

Hello

This means that there are no products that have category: HOME WORK  AND HOME APPLICATIONS ( at the same time )

please  drop me  ftp  access

Did  you  delete  your custom  code?

Yes i deleted the custom code.

I attached ftp account in private data

Hello

I checked  it

sub category (0) <- this must show the total number of its children product but it always show 0 -  Product must be tagged throughout the category chain. if you do not agree with me you can change this behavior - in  file - \wp-content\plugins\woocommerce-products-filter\index.php -change  code https://c2n.me/47iRwbH.png and do a test

On  this  page - https://dev.smarthomeneed.com/products/ - Looks like the template doesn’t hear search queries. It looks like a conflict with the current template

I  created  test  page - https://dev.smarthomeneed.com/test-woof/ - https://c2n.me/47iRM5C - it seems the search is working correctly

 

Hello,

I edited the code like in your screenshot but the count is still not working.

This is a screenshot: the selected filter shows 6 products but the parent shows 0 count.

I am testing this in the page you created /test-woof/

 

https://we.tl/t-x1IAHTcbbX

Hello

Ok!  Attributes do not have a hierarchy. Do you have customized the plugin code? This is not a standard feature.

the selected filter shows 6 products but the parent shows 0 count. - this is what I tried to explain to you here - https://c2n.me/47p4r1v.png

How many products do you have that have attributes: Physical Environment AND Light( https://c2n.me/47p4Z5e.png ) ?  - Zero. And so this result, regardless of  include_children