Skip to content

Customer can not change email in account when old quote is deleted #247

@serzhik

Description

@serzhik

Summary: Unable to change customer email after associated quote is deleted by sales_clean_quotes cron job.

Steps to reproduce:

  1. As a customer, place a new order on the storefront.
  2. Wait for the sales_clean_quotes cron job to run and delete the quote associated with the placed order.
  3. Navigate to the customer account section.
  4. Attempt to change the customer's email address.

Expected result:

  • The customer's email address should be successfully updated in their account.

Actual result:

  • The customer's email address is not changed.
  • The customer receives the following error message: "No such entity with cartId = 123456" (where 123456 is the ID of the deleted quote).

Environment:

  • Magento 2.4.5-p12 (and all other supported versions)

Severity:

  • Major (Prevents a basic customer account function and displays an error message)

Priority:

  • High (Should be addressed quickly due to impact on customer experience)

Additional Information:

  • The issue appears to be related to the system still referencing the deleted quote when attempting to update the customer's email.
  • It's possible that the email update process incorrectly tries to interact with the quote data, even though it should be independent.
  • This could lead to customer frustration and potentially prevent them from managing their account details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions