Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
It seems that if you choose "Single Variation (Product Information)" widget on the product form display and create other variations in the tab 'Variations', if you re-save the product then this will delete the new variations from the 'commerce_product__variations' table and hence lose association with the product. Only the first variation (delta 0) will show.
The variation still exists in the 'commerce_product_variation_field_data' table however.
So far only workaround is to use the complex inline entity widget.
Regards,
Comment | File | Size | Author |
---|---|---|---|
#5 | commerce-3074499-single_variation_widget-5.patch | 893 bytes | czigor |
|
Comments
Comment #2
mellowtothemax CreditAttribution: mellowtothemax commentedComment #3
bojanz CreditAttribution: bojanz at Centarro commentedThe UI was not designed for you to use both the Single variations widget, and the Variations tab. The product type settings always toggle between the two.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedHowever, there is no reason why we can't fix the widget to only modify delta 0, to avoid data loss.
Comment #5
czigor CreditAttribution: czigor at Centarro commentedComment #7
bojanz CreditAttribution: bojanz at Centarro commentedEasy enough. Thanks, czigor!