Title: Conditional attribute values displayed
Last modified: June 2, 2024

---

# Conditional attribute values displayed

 *  Resolved [alitchfield](https://wordpress.org/support/users/alitchfield/)
 * (@alitchfield)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/)
 * Hi,
 * My question is about variable product attributes in Woocommerce on Elementor.
 * Does anyone know of a plugin or js option that offers a way for a subset range
   of attribute values assigned to a product to be displayed on the front end to
   vary conditional on what attribute value has been selected in a previous field
   on the product page?
 * eg product with two attributes: size, colour
   size values big and smallcolour 
   values green, blue, redchoose big and get colour values green, redchoose small
   and get colour values blue, red
 * Thanks
   Alan

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

 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17796549)
 * Hi [@alitchfield](https://wordpress.org/support/users/alitchfield/)
 * While WooCommerce itself doesn’t offer this out-of-the-box, there’s a plugin 
   like the [WooCommerce Variation Swatches and Photos](https://woocommerce.com/products/variation-swatches-and-photos/)
   or [Variation Swatches for WooCommerce](https://wordpress.org/plugins/woo-variation-swatches/)
   can help you with this. These plugins replace the dropdown fields on your variable
   products with WooCommerce Color and Image Swatches.
 * I hope this helps! If you have any other questions, feel free to ask.
 *  Thread Starter [alitchfield](https://wordpress.org/support/users/alitchfield/)
 * (@alitchfield)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17796671)
 * Thanks for that. However, these will not provide text or numeric values will 
   they?
 *  Plugin Support [Rajesh K. (woo-hc)](https://wordpress.org/support/users/rajeshml/)
 * (@rajeshml)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17796904)
 * Hello [@alitchfield](https://wordpress.org/support/users/alitchfield/),
 * Can you please elaborate on what you mean by “text or numeric values”? Are you
   referring to specific product attributes, custom fields, or something else?
 * You can check the live demo of the **WooCommerce Variation Swatches and Photos**
   plugin from [here](https://elementstark.com/woocommerce-extension-demos/product-category/swatches-and-photos/).
   For this** Variation Swatches for WooCommerce** plugin, you can explore the description
   with live demos [here](https://wordpress.org/plugins/woo-variation-swatches/).
 *  Thread Starter [alitchfield](https://wordpress.org/support/users/alitchfield/)
 * (@alitchfield)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17797223)
 * [Edited to add clarity]
 * Sure. Let’s say there is a brochure
 * Let there be 3 attributes, Finished Size (1), Sheet Size (2), and Panels (3).
   The attributes are displayed on the product page as a list of drop down menus.
 * Finished Size (1) has the values DL and A4
 * Sheet Size (2) has the values A4 and A3
 * Panels (3) has the values 4, 6, and 12
 * Scenario 1:
 * If DL from (1) is selected, then from (2) A4 and A3 can be selected.
 * If A4 is selected, then from (3) only 6 is available
 * If A3 is selected, then from (3) only 12 is available
 * Scenario 2:
 * If from (1) A4 is selected, then from (2) only A3 is available
 * When A3 is selected, then from (3) only 4 is available
 * None of these are graphic images or colours. They are numeric and text values.
    -  This reply was modified 2 years ago by [alitchfield](https://wordpress.org/support/users/alitchfield/).
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17797400)
 * Hi there [@alitchfield](https://wordpress.org/support/users/alitchfield/),
 * Based on the description, it looks like you would like to set up conditional 
   logic for your product attributes.
 * As my colleague had earlier shared, WooCommerce’s core functionality does not
   support conditional logic for product attributes out of the box. In that case,
   you will need the help of plugins to achieve this.
 * One such plugin can be the [Conditional Checkout Fields & Edit Checkout Fields for WooCommerce](https://woocommerce.com/products/conditional-checkout-fields-for-woocommerce/)
   or this [third-party plugin](https://codecanyon.net/item/woocommerce-conditional-product-fields-at-checkout/22556253?license=regular&aid=vanquish&aso=googleads&aca=wcpfc&gad_source=1&gclid=Cj0KCQjwsPCyBhD4ARIsAPaaRf2l2H9slrhTcBO0j5AB4mqqB2RioO0x_NGyioDoEiXrzwWZ_fKM4cMaAi2DEALw_wcB).
 * I hope this points you in the right direction.
 *  Thread Starter [alitchfield](https://wordpress.org/support/users/alitchfield/)
 * (@alitchfield)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17797418)
 * Yes, that is what is needed and those two solutions do achieve conditions. However,
   they only work on the cart page and not the single product page (which I had 
   noted previously as a requirement).
 * Halfway there 😉
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17797449)
 * Hi [@alitchfield](https://wordpress.org/support/users/alitchfield/),
 * Thanks for clarifying. In that case, to implement this, you’ll require custom
   coding.
 * Please note that helping out with custom coding of this nature is outside the
   scope of support that our support staff can help out with here, although I found
   [this thread](https://wordpress.org/support/topic/select-product-conditionally/?view=all)
   and I think it will point you int the right direction.
 * I would also recommend the following:
    1. Running the exact question you’re asking, through an AI platform like ChatGPT,
       for recommendations.
    2. Joining our WooCommerce Slack community (it does have a developer channel where
       you can ask coding questions): [https://woo.com/community-slack/](https://woo.com/community-slack/)
 * Hope it helps!
 *  Thread Starter [alitchfield](https://wordpress.org/support/users/alitchfield/)
 * (@alitchfield)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17797459)
 * Thanks, it does. I will link up with the slack channel.
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17797530)
 * Hi [@alitchfield](https://wordpress.org/support/users/alitchfield/)
 * I’m glad we were able to help! I will mark this thread as resolved. Should you
   have further inquiries, kindly [create a new topic here](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Meanwhile, if it isn’t too much to ask for – would you mind leaving us a review
   [here](https://wordpress.org/support/plugin/woocommerce/reviews/)?
 * It only takes a couple of minutes but helps us tremendously. It would mean so
   much to us and would go a really long way.
 * Thanks!

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

The topic ‘Conditional attribute values displayed’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/conditional-attribute-values-displayed/#post-17797530)
 * Status: resolved