Product Variation duplicate not working properly if Entity Reference Revisions fields like paragraphs added

Created on 26 June 2025, 2 days ago

Product Variation duplicate not working properly if Entity Reference Revisions fields like paragraphs added

When duplicating product variations using the default "Duplicate" action provided by the Drupal Commerce module, fields of type entity_reference_revisions—such as those referencing Paragraph entities—are not deeply cloned. As a result, the duplicated variation retains references to the same underlying entities as the original. This leads to unintended side effects where editing the referenced content in one variation affects all other variations that share the same reference.

This issue poses a significant challenge for use cases where each variation is expected to maintain its own independent content structure—particularly in implementations that rely on Paragraphs for flexible content modeling.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Product

Created by

🇮🇳India kanchamk

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024