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,

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mellowtothemax created an issue. See original summary.

mellowtothemax’s picture

Title: Uusing "Single Variation (Product Information)" widget deletes other variations » Using "Single Variation (Product Information)" widget deletes other variations
bojanz’s picture

Status: Active » Closed (works as designed)

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

bojanz’s picture

Title: Using "Single Variation (Product Information)" widget deletes other variations » The single variation widget should not unset other deltas if present
Version: 8.x-2.13 » 8.x-2.x-dev
Status: Closed (works as designed) » Active

However, there is no reason why we can't fix the widget to only modify delta 0, to avoid data loss.

czigor’s picture

Status: Active » Needs review
FileSize
893 bytes

  • bojanz committed ca43a3d on 8.x-2.x authored by czigor
    Issue #3074499 by czigor, bojanz: The single variation widget should not...
bojanz’s picture

Status: Needs review » Fixed

Easy enough. Thanks, czigor!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.