Skip to content

Add Cart Discount Example Issue with Discount Recalculation after Editing an Order in Administration #1626

@No-999

Description

@No-999

In the current documentation for adding cart discounts (https://github.com/shopware/docs/blob/main/guides/plugins/plugins/checkout/cart/add-cart-discounts.md), there is a critical issue related to the discount recalculation when editing an order in the administration. Specifically, when a discount is applied to an order, and then the order is edited by double-clicking the discount and canceling the action, it triggers a recalculation of the discount. This causes the same discount to be added again to the order.

This behavior is not described in the documentation, and it creates confusion for users who are attempting to manage orders and discounts in the Shopware administration. It would be helpful to clarify the expected behavior in such scenarios and to provide a solution or workaround for this issue in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions