Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Too Many Variations? Rate Topic   - - - - -

 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 111 posts

Posted 17 September 2019 - 09:41 AM #1

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? 
 
 
 


 
  • ikoshkin
  • Tech Writer
  • CS-Cart Architects
  • Join Date: 25-Nov 15
  • 427 posts

Posted 17 September 2019 - 10:28 AM #2

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).