Too Many Variations?

Suddenly we get the next error.

"Sorry, there are too many possible variations that can be generated. To prevent heavy load, we won't display them here. Please create the products with the right feature values manually or via import, and add them to the group"
How to prevent this?

Suddenly we get the next error.
"Sorry, there are too many possible variations that can be generated. To prevent heavy load, we won't display them here. Please create the products with the right feature values manually or via import, and add them to the group"

How to prevent this?


The pop-up for creating variations wasn't originally designed for the cases when there were too many possible combinations of features. That resulted in PHP errors on the server or the browser tabs being frozen because of the heavy load on the admin computer's processor.

The message you see is a temporary measure, only to prevent such issues. It prevents generating all the possible variations in the pop-up when they're more than 5000 of possible feature combinations. That way, you'll at least be able to open the pop-up and add existing products to the variation group.

We are currently designing a new interface for creating variations. It will be suitable for cases when there are many possible variations. I'll be able to tell the approximate release date after we add that interface to http://dev.demo.cs-cart.com.

Until then, there are 2 ways:

1. Create variations via import or as independent products. Group them via import or as existing products in the admin panel.

2. Go to app/addons/product_variations/controllers/backend/product_variations.php and find this condition:

if ($combinations_count > 5000)
Replace 5000 with 60000. That should remove the message in most cases (unless your product has more than 60.000 possible variations).

Again this problem since updates. However, the combination_count line is not there. Any idea where to change this?

Hello

Variable $combinations_count about line 385 in controller.

Best regards

Robert

You where right. It was there

Hello

You are welcome :)

Best regards

Robert

Hello,

I dont find it in MVU4.15 :

Where is it now please?

Thank you :wink:

Hi!

This recommendation is no longer applicable since this limitation was removed in 4.10.4 along with the variations generation improvement. In the changelog it is listed as

[!] Add-ons: Product variations: The product variation creation form didn’t open when too many possible variations could be generated. Fixed; now the form will open, but will advise admins to create variations manually or via import and link them to the group.

Thank you for your answer but for me its impossible to create more than 5000 variations… can you check again on your side please.

thankyou

Could you please provide some details on this issue? Are you facing some kind of error?