Error for multiple variations type

Created on 2 October 2023, 9 months ago

Problem/Motivation

Adding variation on new product with module that has 0 combinations and 5-6 types of variations give critical error.

Steps to reproduce

- Add new type of product
- Add more than 1 of variation types
- Add new product with more than 1 types
- Try to add variations

Error message in PHP log

RuntimeException: "Default" supports multiple variation types. in Drupal\commerce_product\Entity\ProductType->getVariationTypeId() (line 121 w .../web/modules/contrib/commerce/modules/product/src/Entity/ProductType.php).

Proposed resolution

Fix or add catch to enable manually running

Remaining tasks

When few variation exist then we have negative number to generate

Related task

For multiple type of variation there is number of possible as negative with proper count (only `-` sign there isn't proper but consistently show)

πŸ› Bug report
Status

Active

Version

2.0

Component

Commerce Bulk

Created by

πŸ‡΅πŸ‡±Poland Patryk Padus

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024