Closed
Description
This issue is automatically created based on existing pull request: #28902: Fixing bug with non-existent customer group breaking quote
Preconditions (*)
There's a bug when a customer group deleted, it's still referenced in active quotes which causes an error on the checkout page.
Such a quote becomes broken and the customer is not able to place an order. This pull request adds functionality for getting customer group from the current customer in case customer group saved to the quote does not exist.
Steps to reproduce (*)
- Create a new customer group.
- Create a new customer. Link that customer to the customer group created on the previous step.
- Log in to the Magento storefront and add some products to the shopping cart.
- Go to the admin and delete the customer group created on step 1.
- Return to the storefront and proceed to checkout.
Actual result: ✖️ an error "No such entity id = ... " displayed. Shipping methods are not rendered.
Expected result: ✔️ a customer should be able to complete an order without any issue.
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentMay be fixed according to the position in the backlog.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.Has been reviewed and prioritized during Triage with Product Managers