Title: Selects only have first value
Last modified: August 24, 2016

---

# Selects only have first value

 *  Resolved [vfssean](https://wordpress.org/support/users/vfssean/)
 * (@vfssean)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/selects-only-have-first-value/)
 * Using WooCommerce 2.3.9 and WC Fields Factory 1.1.3
 * Created a select option for product with four options.
    Only first option shows
   on product detail page. Deactivated all plugins except for Woo and WC Fields.–
   Problem Still Exists Switched to twentyfifteen theme – Problem Still Exists
 * I manually went into the plugin and edited the select.php field file to echo 
   out the ob_get_clean() call in a html comment on the page. I see that all the
   values are in fact there. Something is removing the other values. Possibly a 
   js file in WooCommerce???
 * Any help would be appreciated.
 * [https://wordpress.org/plugins/wc-fields-factory/](https://wordpress.org/plugins/wc-fields-factory/)

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

 *  Thread Starter [vfssean](https://wordpress.org/support/users/vfssean/)
 * (@vfssean)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/selects-only-have-first-value/#post-6154217)
 * Anyone have an idea on this?
 *  Thread Starter [vfssean](https://wordpress.org/support/users/vfssean/)
 * (@vfssean)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/selects-only-have-first-value/#post-6154260)
 * Update:
 * I found an issue with the tables generated by WC Fields Factory having the class“
   variations” on a variable product. The “add-to-car-variation.min.js” file in 
   woocommerce empties out all but the first value of selects from WC Fields Factory
   due to that class being present.
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/selects-only-have-first-value/#post-6154261)
 * [@vfssean](https://wordpress.org/support/users/vfssean/), Thank you for the update,
   I will test and update the plugin.
 *  Thread Starter [vfssean](https://wordpress.org/support/users/vfssean/)
 * (@vfssean)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/selects-only-have-first-value/#post-6154262)
 * [@saravana](https://wordpress.org/support/users/saravana/) Kumar K, Can i offer
   a suggestion?
 * It would be very helpful for me to have additional intuitive classes or id’s 
   attached to the markup generated by your plugin. This would be a huge help for
   styling.
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/selects-only-have-first-value/#post-6154263)
 * [@vfssean](https://wordpress.org/support/users/vfssean/), sure I will add some
   filters for that.
 * have you checked this [article](http://sarkware.com/how-to-change-wc-fields-factory-custom-product-fields-rendering-behavior/)
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/selects-only-have-first-value/#post-6154264)
 * [@vfssean](https://wordpress.org/support/users/vfssean/),
 * Thank you for rising this issue and also for your suggestion.
 * I have removed ‘variations’ class from fields container table. also I have included`
   wccpf/fields/container/class` filter for adding custom class to the container
   tables.
 * Pls keep me post if you find any other issues ( Also your ratings & reviews, 
   if it helped ).

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

The topic ‘Selects only have first value’ is closed to new replies.

 * ![](https://ps.w.org/wc-fields-factory/assets/icon-128x128.jpg?rev=2738843)
 * [WC Fields Factory](https://wordpress.org/plugins/wc-fields-factory/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-fields-factory/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-fields-factory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-fields-factory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-fields-factory/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/selects-only-have-first-value/#post-6154264)
 * Status: resolved