Please help - what am I doing wrong with Conditional Logic?
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 Autumn Morrison on April 19, 2023, 15:51Hello Pablo,
I have tried to figure it out for myself but no luck. I am a novice and do not understand much development, so need things explained very clearly.
Currently, I can't get any conditional logic to work. I know I am missing something and it is not the plugin's fault. Please help me understand.
I want different conditional filters for the following scenarios (I sell lights for homeowners and good filters are key):
- Can I have conditional logic associated with individual categories? My categories are different types of lights. I want different filters to show for different types of lights (different categories). PENDANTS [product_cat with ID #71]. If a person selects Pendants, I would then want them to see all of the following attribute-based filters: pa_hanging-detail, pa_pendant-ceiling-type, pa_base-size, pa_features.
- Can I use the same attribute for different conditional logic filters? ei: CEILING LIGHTS [product_cat69>pa_ceiling-wall-projection, pa_type-of-ceiling-lights, (AND REUSING THE FOLLOWING ATTRIBUTES FROM THE PENDANT CONDITIONAL LOGIC THREAD:) pa_base-size, pa_features.
- There are scenarios where I don't want to start a conditional filter from a category, but I can't get them to work either: [pa_installation-type>pa_weight,] [pa_shape>pa_orientation,pa_view,] [pa_colour,pa_finish,]
Here is a copy of my conditional logic data for default filter (it's a mess, I know)
[pa_installation-type>pa_weight,] [pa_installation-type>pa_ip-rating,] [pa_installation-type>pa_cut-out-size,][pa_installation-type>pa_recessed-depth,] [pa_installation-type>pa_recessed-detail,]pa_ceiling-wall-projection,pa_type-of-ceiling-lights,pa_base-size,pa_footprint-size,pa_hanging-detail,pa_features,pa_pendant-ceiling-type,] [pa_lamping>pa_bulb-base,pa_kelvins,pa_lumens,pa_light-beam-direction,] [pa_shape>pa_orientation,pa_view,] [pa_colour,pa_finish,]
Please help me, I am at a total loss. I respect your time and hope you will be able to take an interest in this basic problem I am having making conditional logic work (I bought the premium version, FYI).
Hello Pablo,
I have tried to figure it out for myself but no luck. I am a novice and do not understand much development, so need things explained very clearly.
Currently, I can't get any conditional logic to work. I know I am missing something and it is not the plugin's fault. Please help me understand.
I want different conditional filters for the following scenarios (I sell lights for homeowners and good filters are key):
- Can I have conditional logic associated with individual categories? My categories are different types of lights. I want different filters to show for different types of lights (different categories). PENDANTS [product_cat with ID #71]. If a person selects Pendants, I would then want them to see all of the following attribute-based filters: pa_hanging-detail, pa_pendant-ceiling-type, pa_base-size, pa_features.
- Can I use the same attribute for different conditional logic filters? ei: CEILING LIGHTS [product_cat69>pa_ceiling-wall-projection, pa_type-of-ceiling-lights, (AND REUSING THE FOLLOWING ATTRIBUTES FROM THE PENDANT CONDITIONAL LOGIC THREAD:) pa_base-size, pa_features.
- There are scenarios where I don't want to start a conditional filter from a category, but I can't get them to work either: [pa_installation-type>pa_weight,] [pa_shape>pa_orientation,pa_view,] [pa_colour,pa_finish,]
Here is a copy of my conditional logic data for default filter (it's a mess, I know)
[pa_installation-type>pa_weight,] [pa_installation-type>pa_ip-rating,] [pa_installation-type>pa_cut-out-size,][pa_installation-type>pa_recessed-depth,] [pa_installation-type>pa_recessed-detail,]pa_ceiling-wall-projection,pa_type-of-ceiling-lights,pa_base-size,pa_footprint-size,pa_hanging-detail,pa_features,pa_pendant-ceiling-type,] [pa_lamping>pa_bulb-base,pa_kelvins,pa_lumens,pa_light-beam-direction,] [pa_shape>pa_orientation,pa_view,] [pa_colour,pa_finish,]
Please help me, I am at a total loss. I respect your time and hope you will be able to take an interest in this basic problem I am having making conditional logic work (I bought the premium version, FYI).
Quote from Pablo Borysenco on April 20, 2023, 12:03Hello
Can I have conditional logic associated with individual categories? - unfortunately no. You can only specify the filter element (attribute or meta field)
But this does not mean that you will not be able to get the desired result, it depends on your data.
for example, you want the user to see only these attributes: pa_hanging-detail,pa_pendant-ceiling-type,pa_base-size,pa_features after category selection. So syntax:
product_cat>pa_hanging-detail,pa_pendant-ceiling-type,pa_base-size,pa_features
So if user check - CEILING LIGHTS - it will see the right attributes. but what happens if the user selects another category : FLOOR LAMP - it depends on your data. for example, products from the FLOOR LAMP category do not have these(pa_hanging-detail,pa_pendant-ceiling-type) attributes at all. and the filter will automatically calculate that there are no products with such attributes in the current search query and hide its. As a result, after selecting FLOOR LAMP category, only these attributes pa_base-size,pa_features(of course if the products have these attributes) will be visible
An example of a valid shortcode:
[woof conditionals='product_cat>pa_hanging-detail,pa_pendant-ceiling-type,pa_base-size,pa_features']
Hello
Can I have conditional logic associated with individual categories? - unfortunately no. You can only specify the filter element (attribute or meta field)
But this does not mean that you will not be able to get the desired result, it depends on your data.
for example, you want the user to see only these attributes: pa_hanging-detail,pa_pendant-ceiling-type,pa_base-size,pa_features after category selection. So syntax:
product_cat>pa_hanging-detail,pa_pendant-ceiling-type,pa_base-size,pa_features
So if user check - CEILING LIGHTS - it will see the right attributes. but what happens if the user selects another category : FLOOR LAMP - it depends on your data. for example, products from the FLOOR LAMP category do not have these(pa_hanging-detail,pa_pendant-ceiling-type) attributes at all. and the filter will automatically calculate that there are no products with such attributes in the current search query and hide its. As a result, after selecting FLOOR LAMP category, only these attributes pa_base-size,pa_features(of course if the products have these attributes) will be visible
An example of a valid shortcode:
[woof conditionals='product_cat>pa_hanging-detail,pa_pendant-ceiling-type,pa_base-size,pa_features']
Quote from Autumn Morrison on April 24, 2023, 12:15Hi Pablo,
Thank you for your quick reply. I waited to respond b/c of the weekend. I tried your advise (which makes perfect sense, great solution & thank you for the example code) but for some reason, all filters are still displaying whenever any category is selected. I have taken some screen shots for you. You can see the filters on my website: lighting-guru.pro. If you select 'mirror with light' which only has 3 items and not very many attributes, you can see all conditional attributes are listed after selecting 'mirror with light', even attributes unrelated to 'mirror with light'. Not sure if this is related to the issue, but I am also struggling with the checkbox/SD selection (which I was going to open a separate support ticket for). It's not easy to explain - but checkboxes do not display actual checkboxes (see screen shot). I created a SD option which displays checkboxes (which is what I want) but the SD does not display children categories so I can't use it for my categories. (SD also does not have an 'AND' logic option, which I need for 1 of my filters). Is there a problem with the categories being the children and could this be related to the conditional logic not working? I would also like to hide the parent category if possible: 'TYPE'.
https://lighting-guru.pro/all-products/
(I've added the screenshots as links cause I can't figure out the how to find the source of the screenshots/struggling to upload them from the image uploader, sorry)
file:///Users/autumnamorrison/Desktop/Checkboxes%20not%20displaying%20checkboxes.png
file:///Users/autumnamorrison/Desktop/Display%20mixed%20Checkbox%20and%20SD.png
file:///Users/autumnamorrison/Desktop/Conditional%20Logic%20Code.png
Hi Pablo,
Thank you for your quick reply. I waited to respond b/c of the weekend. I tried your advise (which makes perfect sense, great solution & thank you for the example code) but for some reason, all filters are still displaying whenever any category is selected. I have taken some screen shots for you. You can see the filters on my website: lighting-guru.pro. If you select 'mirror with light' which only has 3 items and not very many attributes, you can see all conditional attributes are listed after selecting 'mirror with light', even attributes unrelated to 'mirror with light'. Not sure if this is related to the issue, but I am also struggling with the checkbox/SD selection (which I was going to open a separate support ticket for). It's not easy to explain - but checkboxes do not display actual checkboxes (see screen shot). I created a SD option which displays checkboxes (which is what I want) but the SD does not display children categories so I can't use it for my categories. (SD also does not have an 'AND' logic option, which I need for 1 of my filters). Is there a problem with the categories being the children and could this be related to the conditional logic not working? I would also like to hide the parent category if possible: 'TYPE'.
https://lighting-guru.pro/all-products/
(I've added the screenshots as links cause I can't figure out the how to find the source of the screenshots/struggling to upload them from the image uploader, sorry)
file:///Users/autumnamorrison/Desktop/Checkboxes%20not%20displaying%20checkboxes.png
file:///Users/autumnamorrison/Desktop/Display%20mixed%20Checkbox%20and%20SD.png
file:///Users/autumnamorrison/Desktop/Conditional%20Logic%20Code.png
Quote from Autumn Morrison on April 24, 2023, 12:18I've just seen that none of the screenshot links are working argh.
I've just seen that none of the screenshot links are working argh.
Quote from Pablo Borysenco on April 25, 2023, 10:54Hello
you can create a custom page on your site with screenshots and give me a link or use a service to send images by link
Please drop me wp-admin access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png
(SD also does not have an 'AND' logic option, which I need for 1 of my filters) - Yes, we will fix it in the next version. But now you can use this method - https://products-filter.com/set-logic-taxonomies-search-request
https://lighting-guru.pro/all-products/ - The filter on this page has no conditions
Hello
you can create a custom page on your site with screenshots and give me a link or use a service to send images by link
Please drop me wp-admin access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png
(SD also does not have an 'AND' logic option, which I need for 1 of my filters) - Yes, we will fix it in the next version. But now you can use this method - https://products-filter.com/set-logic-taxonomies-search-request
https://lighting-guru.pro/all-products/ - The filter on this page has no conditions
Quote from Autumn Morrison on April 25, 2023, 11:04Hi Pablo, I added the info you requested in the private area. Please let me know if you have any trouble. I will wait on the screen shots till you are able to look around. You may spot the issue (probably something I'm doing) straight away. Thank you for your support. It is much appreciated. Regards, Autumn
Hi Pablo, I added the info you requested in the private area. Please let me know if you have any trouble. I will wait on the screen shots till you are able to look around. You may spot the issue (probably something I'm doing) straight away. Thank you for your support. It is much appreciated. Regards, Autumn
Quote from Pablo Borysenco on April 25, 2023, 12:16Ok! Please do a test - https://lighting-guru.pro/woof-test
I disabled SD - because it didn't hide headers when terms were empty
Ok! Please do a test - https://lighting-guru.pro/woof-test
I disabled SD - because it didn't hide headers when terms were empty
Quote from Autumn Morrison on April 25, 2023, 12:23Hi Pablo, I ran a test but am getting 'no results' when selecting table lamp, or wall light? Is there a way to replicate my TYPE categories so the test only reflects the categories I want to include in TYPE? or maybe that doesn't matter for the testing purposes of the conditional logic. In any case, I couldn't proceed testing it b/c the filter isn't finding any results at all. hmmm.
Hi Pablo, I ran a test but am getting 'no results' when selecting table lamp, or wall light? Is there a way to replicate my TYPE categories so the test only reflects the categories I want to include in TYPE? or maybe that doesn't matter for the testing purposes of the conditional logic. In any case, I couldn't proceed testing it b/c the filter isn't finding any results at all. hmmm.
Quote from Pablo Borysenco on April 25, 2023, 13:11I'm not sure I understood you correctly. You have about 30 attributes, about half are hidden with conditions. If you select a category, all attributes that exist in the context of the current category will be displayed, other attributes will be hidden
My test - https://c2n.me/4inVik2
I'm not sure I understood you correctly. You have about 30 attributes, about half are hidden with conditions. If you select a category, all attributes that exist in the context of the current category will be displayed, other attributes will be hidden
My test - https://c2n.me/4inVik2
Quote from Autumn Morrison on April 25, 2023, 13:21Thank you, yes, I can see the conditional logic working perfectly on the you sent to me - I refreshed my browser and that helped me see the same as your example.
Conditional logic sorted!
Would you like me to start a new support ticket to ask about visible check boxes in the checkbox selection?
I would also like to change the size of the font filter headers (I would like them a bit smaller). Is there a simple way to modify the look of the text on the filter headers?
I am very grateful for your help with the conditional logic.
Kind Regards, Autumn
Thank you, yes, I can see the conditional logic working perfectly on the you sent to me - I refreshed my browser and that helped me see the same as your example.
Conditional logic sorted!
Would you like me to start a new support ticket to ask about visible check boxes in the checkbox selection?
I would also like to change the size of the font filter headers (I would like them a bit smaller). Is there a simple way to modify the look of the text on the filter headers?
I am very grateful for your help with the conditional logic.
Kind Regards, Autumn
Quote from Pablo Borysenco on April 26, 2023, 11:26Hello Autumn
Let's keep supporting this thread
I created a SD option which displays checkboxes (which is what I want) but the SD does not display children categories so I can't use it for my categories. - Describe it in more detail. This filter type should show hierarchy (child elements)
I would also like to change the size of the font filter headers - please add CSS:
.woof_container h4 {
font-size: 2.0rem;
}
Hello Autumn
Let's keep supporting this thread
I created a SD option which displays checkboxes (which is what I want) but the SD does not display children categories so I can't use it for my categories. - Describe it in more detail. This filter type should show hierarchy (child elements)
I would also like to change the size of the font filter headers - please add CSS:
.woof_container h4 {
font-size: 2.0rem;
}
Quote from Autumn Morrison on April 26, 2023, 12:11Brilliant, thank you! I figured out how to get the check boxes to display (by changing the skin from minimal_minimal to: minimal_grey) so I no longer need the SD functionality :).
Next is the Slide Out filter - I love it but it's very problematic viewing on a mobile. I tried all different combinations of settings but no luck. Any way you could create a code so that the slide out filter opens and closes manually instead of upon page reload? If I leave it closed (so it doesn't block the screen and pop up on each new page) I lose the dynamic functionality (which is awesome). When I leave the slide out filter closed, I have to open the filter each time to add a new filter, it's a bit bananas. But when I leave it open so I can select multiple filters - it pop open (annoyingly) on each new page and completely covers the shop page on mobile view as soon you view the shop page. The slide out filter fills up the mobile screen to the point where I can't see the filter button to close it. I hope this makes sense. I want the slider filter to rest closed until required, especially on mobiles. And then be able to open the slide out filters, choose multiple filters with dynamic recounting, and then close the filter [without pushing a 'go filter' command]. Or is there a filter button I should use instead of the slide out feature? But I really like the slide out feature ... especially as it skates down the page scroll. You can see what it looks like on your smart phone if you go to my shop page.
Brilliant, thank you! I figured out how to get the check boxes to display (by changing the skin from minimal_minimal to: minimal_grey) so I no longer need the SD functionality :).
Next is the Slide Out filter - I love it but it's very problematic viewing on a mobile. I tried all different combinations of settings but no luck. Any way you could create a code so that the slide out filter opens and closes manually instead of upon page reload? If I leave it closed (so it doesn't block the screen and pop up on each new page) I lose the dynamic functionality (which is awesome). When I leave the slide out filter closed, I have to open the filter each time to add a new filter, it's a bit bananas. But when I leave it open so I can select multiple filters - it pop open (annoyingly) on each new page and completely covers the shop page on mobile view as soon you view the shop page. The slide out filter fills up the mobile screen to the point where I can't see the filter button to close it. I hope this makes sense. I want the slider filter to rest closed until required, especially on mobiles. And then be able to open the slide out filters, choose multiple filters with dynamic recounting, and then close the filter [without pushing a 'go filter' command]. Or is there a filter button I should use instead of the slide out feature? But I really like the slide out feature ... especially as it skates down the page scroll. You can see what it looks like on your smart phone if you go to my shop page.
Quote from Pablo Borysenco on April 27, 2023, 11:39Hello
Please try this option - https://share.pluginus.net/image/i20230427123829.png - Then the filter will be closed when the page is loaded.
Hello
Please try this option - https://share.pluginus.net/image/i20230427123829.png - Then the filter will be closed when the page is loaded.
Quote from Autumn Morrison on April 27, 2023, 14:53I tried that but the problem is that you have to re-open the filter each time you add a new filter, which is bonkers and puts customers off - plus you have no benefit of the dynamic recount because you can't see it happening.
Really wish the slide out would remain static till manually closed or opened.
(I tried setting it to manual whereby you must select FILTER but then there is no dynamic recount...)
Just want to open the slide out filters, select all my filters with instant dynamic recount, and then close it to view results.
I tried that but the problem is that you have to re-open the filter each time you add a new filter, which is bonkers and puts customers off - plus you have no benefit of the dynamic recount because you can't see it happening.
Really wish the slide out would remain static till manually closed or opened.
(I tried setting it to manual whereby you must select FILTER but then there is no dynamic recount...)
Just want to open the slide out filters, select all my filters with instant dynamic recount, and then close it to view results.
Quote from Pablo Borysenco on April 28, 2023, 11:47Hello
Please try to enable ajax mode and - https://share.pluginus.net/image/i20230427123829.png
Hello
Please try to enable ajax mode and - https://share.pluginus.net/image/i20230427123829.png
Quote from Autumn Morrison on April 28, 2023, 12:10That seems to work but now the filter will not scroll - so I can't access the lower filters. Try it on my site: https://lighting-guru.pro/all-products/
Getting there!
That seems to work but now the filter will not scroll - so I can't access the lower filters. Try it on my site: https://lighting-guru.pro/all-products/
Getting there!
Quote from Autumn Morrison on April 28, 2023, 12:11The scrolling works on a smart phone but not desk top.
The scrolling works on a smart phone but not desk top.
Quote from Pablo Borysenco on April 28, 2023, 15:58Try to add CSS
.woof_slideout_default .woof-slide-content {
overflow: auto;
max-height: 600px;
}
Try to add CSS
.woof_slideout_default .woof-slide-content {
overflow: auto;
max-height: 600px;
}
Quote from Autumn Morrison on May 2, 2023, 10:58I am so grateful, thank you so much for helping me with all my questions.
I am very happy with how the filters are working now and shall leave you in peace!
Kind Regards, Autumn
I am so grateful, thank you so much for helping me with all my questions.
I am very happy with how the filters are working now and shall leave you in peace!
Kind Regards, Autumn
Quote from Pablo Borysenco on May 2, 2023, 11:44Hello Autumn
Great! Welcome;)
Write to me if you have any more questions
Hello Autumn
Great! Welcome;)
Write to me if you have any more questions