Chosen Jquery in Product Variations? (2 posts)

  1. Richard Wint
    Posted 3 years ago #

    I hope this is not to nooby... I am using product variations and I don't want to see the disabled options in my drop down list.
    I tried ` select option[disabled] {
    display: none;
    }` in my css but unfortunately it doesn't work on all platforms. After googling a while i found out that Chosen Jquery does this itself. I installed the chosen jquery plugin and it changed nothing, I then found out that Woocommerce actually comes with the plugin anyway... but still the variation boxes aren't displayed the way I expect (want) them to. The strange thing is that if I copy the select html i.e

    <select name="attribute_c">
    	<option value="">Choose an option…</option>
    	<option value="RA" disabled="disabled">RA</option>
            <option value="RH">RH</option>

    into the product description then update the box shows properly in the description and also in the variation section... but the hiding of disabled options only works in the description box, all options are still shown in variations. Is there some sort of overriding script in woocommerce? Is there a way to force the Chosen jquery? Or indeed any other way to hide the 'disabled' options?

    I hope this makes sense to someone... :-\


  2. Roy Ho
    Posted 3 years ago #

    Read the change/update events section to learn how to this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic