Title: WC_MAX_LINKED_VARIATIONS not working
Last modified: June 14, 2019

---

# WC_MAX_LINKED_VARIATIONS not working

 *  Resolved [subrat4php](https://wordpress.org/support/users/subrat4php/)
 * (@subrat4php)
 * [7 years ago](https://wordpress.org/support/topic/wc_max_linked_variations-not-working/)
 * I have tried with below code in wp-config.php but no help. It’s kind of urgent
   and I have product variations more than 250 for some products. Any suggestions
   please.
 * `define( 'WC_MAX_LINKED_VARIATIONS', 250 );`
 * Even, I tried above code in functions.php (as some guys suggested) still not 
   working.

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

 *  Plugin Support [Ryan Ray](https://wordpress.org/support/users/ryanr14/)
 * (@ryanr14)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/wc_max_linked_variations-not-working/#post-11651379)
 * Hi [@subrat4php](https://wordpress.org/support/users/subrat4php/),
 * I assume you are wanting to create more than 50 variations at a time when using
   the option here?
 * 
    Link to image: [https://cld.wthms.co/MPwtXX](https://cld.wthms.co/MPwtXX)
 * That constant won’t work in the functions.php file, but with that added to your
   wp-config.php file what issue did you see when trying to create variations? Just
   one clarifying point, even though it still says (Max 50 per run) as the image
   below shows it will do 250. If you do get it to run does it not make 250 variations
   for you?
 * 
    Link to image: [https://cld.wthms.co/gxnEiA](https://cld.wthms.co/gxnEiA)
 * Thanks for helping confirm and clarify further.
 *  [subrat4wp](https://wordpress.org/support/users/subrat4wp/)
 * (@subrat4wp)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/wc_max_linked_variations-not-working/#post-11651515)
 * Thank you very much for the suggestions. I will try it and let you know here 
   soon.
 *  [subrat4wp](https://wordpress.org/support/users/subrat4wp/)
 * (@subrat4wp)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/wc_max_linked_variations-not-working/#post-11651554)
 * Great!!!
 * It worked this time. Previously, I have tried the same code in wp-config.php 
   and it worked but this time something went wrong and only 50 variations were 
   created.
 * It’s done now. I can now create 250 variations.
 *  Plugin Support [Grigorij S. a11n](https://wordpress.org/support/users/grigaswp/)
 * (@grigaswp)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wc_max_linked_variations-not-working/#post-11688808)
 * Hi there,
 * I’m glad to hear that you were able to make the necessary changes in order to
   allow 250 variations to be created at once!
 * I’ll be marking this thread as `resolved` now. Feel free to start a new thread
   if you have additional questions!

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

The topic ‘WC_MAX_LINKED_VARIATIONS not working’ 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [Grigorij S. a11n](https://wordpress.org/support/users/grigaswp/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/wc_max_linked_variations-not-working/#post-11688808)
 * Status: resolved