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 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 sviluppo@sinapps.it on April 24, 2020, 14:17Hello,
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:
- 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.
- 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.
- 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,
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:
- 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.
- 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.
- 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
Quote from Pablo Borysenco on April 27, 2020, 12:52Hello
- 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
- I checked it. Everything seems to work correctly - https://c2n.me/47eNNaJ
- The plugin does not have such a feature
Hello
- 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
- I checked it. Everything seems to work correctly - https://c2n.me/47eNNaJ
- The plugin does not have such a feature
Quote from sviluppo@sinapps.it on April 28, 2020, 17:06Ok 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
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:
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
Quote from Pablo Borysenco on April 29, 2020, 13:21Hello
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?
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?
Quote from sviluppo@sinapps.it on April 29, 2020, 13:39Yes i deleted the custom code.
I attached ftp account in private data
Yes i deleted the custom code.
I attached ftp account in private data
Quote from Pablo Borysenco on April 30, 2020, 16:54Hello
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 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
Quote from sviluppo@sinapps.it on May 6, 2020, 14:22Hello,
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,
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/
Quote from Pablo Borysenco on May 7, 2020, 15:11Hello
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
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