Title: 2nd Attribute
Last modified: November 13, 2018

---

# 2nd Attribute

 *  Resolved [creativetechaz](https://wordpress.org/support/users/creativetechaz/)
 * (@creativetechaz)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/2nd-attribute/)
 * So I’m using a temporary domain while I setup this website. I’ve created a product
   that should have two attributes: Color and Size. For some reason under size, 
   I’ve listed out Average and Large but only Average is showing. Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F2nd-attribute%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [nathan12343](https://wordpress.org/support/users/nathan12343/)
 * (@nathan12343)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/2nd-attribute/#post-10880283)
 * Looks like it’s working now.
 *  Thread Starter [creativetechaz](https://wordpress.org/support/users/creativetechaz/)
 * (@creativetechaz)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/2nd-attribute/#post-10881117)
 * I ended up completely rebuilding the products. Any idea why this would happen?
 * One of my products: [http://229.3a8.myftpupload.com/product/upstage/](http://229.3a8.myftpupload.com/product/upstage/)
   behaves in a way that if you have “Large” as a cap size selected it doesn’t show
   the “unavailable” options in color but my other product: [http://229.3a8.myftpupload.com/product/voltage/](http://229.3a8.myftpupload.com/product/voltage/)
   just says “no products match”.
 * Why the difference?
    -  This reply was modified 7 years, 6 months ago by [creativetechaz](https://wordpress.org/support/users/creativetechaz/).
 *  [wbrubaker.a11n](https://wordpress.org/support/users/wbrubaker/)
 * (@wbrubaker)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/2nd-attribute/#post-10953468)
 * Howdy 🙂
 * It’s the sheer number of existing variations on this product [http://229.3a8.myftpupload.com/product/voltage/](http://229.3a8.myftpupload.com/product/voltage/)
   that cause the difference
 * If we inspect the source code, we can see that on this product:
    [http://229.3a8.myftpupload.com/product/upstage/](http://229.3a8.myftpupload.com/product/upstage/)
 * All of the available variations are available as a JSON string:
    [](http://cld.wthms.co/L0x5S5)
 * But on the other product the value there is “false”:
    [](http://cld.wthms.co/tf1cPl)
 * This behavior was introduced in WooCommerce 2.4 and is documented here: [https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/](https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/)
 * The change was made because checking for available variations is extremely server
   intensive and can have a significant negative impact on page load speed. If there
   are more than 30 variations, the availability is checked in the background via
   an AJAX call.
 * There is a filter named `woocommerce_ajax_variation_threshold` which can be used
   to adjust this behavior and an example of that can be found here: [https://gist.github.com/claudiosanches/6f91ad228c2176b986b2](https://gist.github.com/claudiosanches/6f91ad228c2176b986b2)
 * However, that code snippet example decreases the limit, to cause your product
   to work like you seem to want it to work would require an increase of that limit.
   Do keep in mind that this does have a very likely potential to impact page load
   times.
 * Kind regards,
 *  [Kenin](https://wordpress.org/support/users/kbassart/)
 * (@kbassart)
 * Automattic Happiness Engineer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/2nd-attribute/#post-10990530)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

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

The topic ‘2nd Attribute’ 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/)

## Tags

 * [attribute](https://wordpress.org/support/topic-tag/attribute/)

 * 4 replies
 * 4 participants
 * Last reply from: [Kenin](https://wordpress.org/support/users/kbassart/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/2nd-attribute/#post-10990530)
 * Status: resolved