I am working on a WordPress website, with WooCommerce functionality.

I have uploaded a Product, where the next step is to upload all the variations. There is a total of 2,560 variations.

To modify the default limit of 50 Variations, to 5000, I entered the following code into the functions.php file:

<?php define( 'WC_MAX_LINKED_VARIATIONS', 5000 ); ?>

This did increase the Variations limit from 50 to 346. As I still needed to further increase the limit, I thought that I would need to go into the php.ini file and make the following amendments:

  • memory_limit from 128m to 64000M
  • post_max_size from 8M to 4000M
  • upload_max_filesize 2M from 1000m

Unfortunately, I am still limited to no more than 346 Variations on a single product.

I am not sure if this is a factor but I did notice that the following entry had been coded out:

; How many GET/POST/COOKIE input variables may be accepted
; max_input_vars = 1000

Has anyone else experienced this problem or aware of any other issues that could be limiting the amount of Variations I can add?

Read more here: How can I increase the amount of Product Variations within WooCommerce? My current Product Variation limit is 346


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: