Title: Conditional options
Last modified: January 14, 2022

---

# Conditional options

 *  [aliferis](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/)
 * Hi there.
    great plugin. I worked out how to import data too so saved lot of 
   time building big lists of options.
 * Ive run into an issue with some products. They need to have some options hide/
   show, depending on choices in other options.
 * any help appreciated
 * Joe
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconditional-options-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15255024)
 * Hello,
 * There is a paid plugin to make options dependent on each other.
    “Dependent Options”
   [http://hottons.com/po_modifications](http://hottons.com/po_modifications)
 * Also for contact lenses there is a plugin to display product options as a table:
   
   [https://wordpress.org/plugins/lenses-prescription/](https://wordpress.org/plugins/lenses-prescription/)
 * Stanislav
 *  Thread Starter [aliferis](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15255485)
 * thanks a lot. this is great support.
 * Are these approaches compatible with your plugin ?
 * thanks
 * Joe
 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15255509)
 * Hello,
 * Yes, they compatible with this plugin.
 * Just it may require some modification to hide the dependent options inside the
   lenses table.
 * Stanislav
 *  Thread Starter [aliferis](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15255776)
 * looking at my page I linked to – with all its options I built with your simple
   prod options plugin, do you think I could build dependant options like so with
   the add-on ?
 * A user chooses a LEFT / RIGHT Power option from the drop down and the AXIS options
   change depending on what Power option they choose ?
 * so, some Axis options are not available for all Power options ?
 * In your plugin screen shots, what do the numbers in the fields represent ?
 * cheers
 * Joe
 *  Thread Starter [aliferis](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15255797)
 * I dont want to hide or show whole options drop downs – just modify the values
   in them.
 * I suppose, if thats not possible then I could build multiple versions of a drop
   down and hide / show the correct one according to a choice in another option ?
 * more work but same result, I think
 * **Question**:
    Can I dynamically alter the options in a drop down when a user
   selects an option in another drop down ?
 *  Thread Starter [aliferis](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15256194)
 * using your screen shot example, if I put ID 15 in Matt Chrome and 16 in Brighton
   Chrome, what shows in the second options ‘Select your lens next’ when a user 
   selects ‘Matt Chrome’ in ‘Select your frames first’ and what shows in ‘Select
   your lens next’ when they select 23k Gold in ‘Select your frames first’ ?
 * sorry if I am being dense
 * Joe
 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15256351)
 * Hello,
 * > In your plugin screen shots, what do the numbers in the fields represent
 * The numbers are row IDs. So each option value can be referenced by id.
    When 
   those numbers are in the “Children” field it means that those child values will
   be visible only when the parent value is selected.
 * > I don’t want to hide or show whole options drop downs – just modify the values
   in them.
 * Yes, it is possible to hide just some values in the drop-down select.
 * >if I put ID 15 in Matt Chrome and 16 in Brighton Chrome,
    So it will be set 
   like this:
 * Select your frames first:
    – Matt Chrome (child 15) – Brighton Chrome (child 
   16) – 23k Gold
 * Select your lens next:
    – 15 SkyTec American Gray – 16 SkyForce Air Northern 
   Lights
 * When “Matt Chrome” is selected then the next option will have just on one option
   value “SkyTec American Gray”.
    When “Brighton Chrome” is selected then the next
   option will have just the “SkyForce Air Northern Lights” value selectable. And
   when the “23k Gold” is selected the next drop-down select “Select your lens next”
   will be hidden because it has no selectable options for this parent value.
 * You should contact me by email [pektsekye@gmail.com](https://wordpress.org/support/topic/conditional-options-3/pektsekye@gmail.com?output_format=md)
   if you have questions about my paid plugins.
 * Stanislav
 *  Thread Starter [aliferis](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15261695)
 * Your support has been great and I have solved the issue of dependent options 
   with your add-on, so thank you.
 * [https://cookeopticians.ie/product/acuvue-oasys-with-hydraluxe1-day-for-astigmatism/](https://cookeopticians.ie/product/acuvue-oasys-with-hydraluxe1-day-for-astigmatism/)
 * I have one final question tho:
 * If I move the sort order of an option field in order to move an option below 
   another option in the front end, will this change the IDs of the option values–
   thus breaking the dependencies Ive made ?
 * thanks
 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15263468)
 * Hello,
 * No, the sort order will not change the IDs of the option values.
 * Stanislav

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

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

 * ![](https://ps.w.org/product-options-for-woocommerce/assets/icon-256x256.png?
   rev=1892402)
 * [Simple Product Options for WooCommerce](https://wordpress.org/plugins/product-options-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/product-options-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/product-options-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-options-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-options-for-woocommerce/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/conditional-options-3/#post-15263468)
 * Status: not resolved