Title: Conditional logic
Last modified: June 17, 2021

---

# Conditional logic

 *  Resolved [Roberto Ibarra](https://wordpress.org/support/users/marsrober/)
 * (@marsrober)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-73/)
 * Is there a way to use conditional logic?
    Like if I select Cat A I will have 
   x options for Cat B, but if I select another category at the first option, other
   options are showed for the second category and so on.
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * (@woobewoo)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-73/#post-14568775)
 * Hello [@marsrober](https://wordpress.org/support/users/marsrober/),
 * Please describe the issue with a specific example, with screenshots or a link
   to the page with example.
 * It is not entirely clear how this should work, because if you select the category“
   A” in the filter, then the products of the category “B” will not be displayed,
   as well as the part of the filter concerning the category “B”.
 * Or do you mean a category page and not a filter item?
 * More: [https://woobewoo.com/documentation/attribute-filter-settings/](https://woobewoo.com/documentation/attribute-filter-settings/)
 *  Thread Starter [Roberto Ibarra](https://wordpress.org/support/users/marsrober/)
 * (@marsrober)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-73/#post-14572336)
 * Hi [@woobewoo](https://wordpress.org/support/users/woobewoo/)
 * It’s a car selling eCommerce.
    All products will have 3 categories like Brand-
   > Model -> Year So I have a filter with 3 category dropdowns and I want to change
   Model options depending on Brand selections, so, for example, if I select Volkswagen,
   then I will have A, B, C Models to select, but if I select BMW I will have other
   options for Model. Is it more clear?
 * Thanks!
 *  Plugin Author [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * (@woobewoo)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-73/#post-14572800)
 * Hi,
 * Turn on “Hide attributes without products” – [http://joxi.ru/RmzyYVMuj0Lndr](http://joxi.ru/RmzyYVMuj0Lndr)
   then, when you select VW you will see only those attributes that VW has, the 
   attributes concerning BMW will be hidden.
 *  Thread Starter [Roberto Ibarra](https://wordpress.org/support/users/marsrober/)
 * (@marsrober)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-73/#post-14603122)
 * We are almost there.
    With that option anytime I choose a category I have to 
   push search to achieve that behavior. I mean, I select VW as the first category(
   brand) but it shows all models until I press search. If I don’t press search 
   for each category I select it doesn’t do what I wanted to do. So each time I 
   select a category I have to press search in order to achieve the “hide attributes
   without products” and that’s not a good experience for the user. The idea is 
   to press search when I have selected all categories.
 * I hope you can understand what I mean.
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Conditional logic’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-product-filter_a0a6df.svg)
 * [Product Filter for WooCommerce by WBW](https://wordpress.org/plugins/woo-product-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-filter/reviews/)

## Tags

 * [logic](https://wordpress.org/support/topic-tag/logic/)
 * [product filter](https://wordpress.org/support/topic-tag/product-filter/)
 * [shop filter](https://wordpress.org/support/topic-tag/shop-filter/)
 * [WooCommerce Filter](https://wordpress.org/support/topic-tag/woocommerce-filter/)

 * 4 replies
 * 2 participants
 * Last reply from: [Roberto Ibarra](https://wordpress.org/support/users/marsrober/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-73/#post-14603122)
 * Status: resolved