Skip to content

Incorrect order status label in sales update emails sent from the admin for non-default store views #29263

Closed
@aadmathijssen

Description

@aadmathijssen

After sending a sales update email from the admin for an order using a non-default store view, the resulting email contains the order status label for the default store view instead of the order status label for the store view in which the order is placed.

Preconditions (*)

  1. A Magento 2.4-develop installation with sample data.

Steps to reproduce (*)

  1. In the admin:

    • Go to “Stores > All Stores”, click on “Create Store View”, fill in the required values, set the status to “Enabled” and click on the "Save Store View” button.
    • Go to “Stores > Order Status”, click on the “Pending” status, enter the following data under “Store View Specific Labels”, and click on the “Save Status” button.
      • Default Store View: “Pending (default)”
      • New Store View: “Pending (secondary)”
        Screenshot from 2020-07-29 12-26-46
  2. In the frontend:

    • Select the new store view in the store view switcher.
    • Add a product to the cart.
    • Complete the checkout using the “Check / Money order” payment method.
  3. In the admin:

    • Go to “Sales > Orders”, and click on the newly created order.
    • On this order view page, enter a comment, click on the “Notify Customer by Email” checkbox and click on the "Submit Comment” button.

Expected result (*)

  1. An order update email is sent containing “Pending (secondary)” as the order status.

Actual result (*)

  1. An order update email is sent containing “Pending (default)” as the order status.

Screenshot of the resulting email:

sales_order_update_email_with_incorrect_order_status_label


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Component: EmailComponent: SalesComponent: StoreFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: DoneHas been reviewed and prioritized during Triage with Product Managers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions