Customer Group Not Stored with Order Could Lead to Inconsistent Behavior
Actual behaviour:
It seems that Shopware does not store the customer group with the order, instead retrieving it from the customer record when the order is updated. This behavior might lead to potential inconsistencies in how orders are processed, especially if the customer group changes over time.
Additional Notes:
Other shop systems store the customer group along with the order to maintain consistency.
Shopware triggers specific rules or actions based on the customer group, so this behavior may cause issues with rule application or order management.
While this may be intentional, it could lead to unintended changes in customer-specific behavior, such as pricing or discounts.
Expected behaviour:
It would be preferable for the customer group to be stored with the order so that it reflects the state of the customer group at the time the order was placed. This is a behavior that other shop systems commonly implement to avoid inconsistencies when updating or modifying orders.
Would it be possible to store the customer group directly with the order upon placement to avoid potential discrepancies when editing an order later? If this is not intended behavior, it might be worth revisiting the design.
How to reproduce:
Steps to Reproduce:
- Place an order with a specific customer group.
- Update the order at a later time.
- If the customer group has changed in the meantime, the updated order may reflect the new customer group rather than the one that was originally assigned.
