WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Chosen Jquery in Product Variations? (2 posts)

  1. Richard Wint
    Member
    Posted 1 year ago #

    Hello,
    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>
    </select>

    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... :-\

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    Read the change/update events section to learn how to this.
    http://harvesthq.github.com/chosen/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic