Skip to content

Orders status not changing to Complete with bundle products #40460

@taurus-media

Description

@taurus-media

Preconditions and environment

  • Magento version: 2.4.8-p3
  • Order with a bundle product in cart

Steps to reproduce

  1. Add a BUNDLE product to cart and place an order
  2. In the admin panel, go to the order page
  3. Create an invoice
  4. Create a shipment

Expected result

  • order status is switched to 'Complete'
  • there is no 'Ship' button in the top right toolbar

Actual result

  • orders status remains 'Processing'
  • the 'Ship' button is still visible, however you can't acutally create a shipment

Additional information

The issues happens because when you create a shipment for a bundle product, the qty_shipped value is getting updated for the parent product only, but not for the child products. As a result, the Magento\Sales\Model\Order::canShip() method always returns true.

Release note

No response

Triage and priority

  • 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

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.8-p3Indicates original Magento version for the Issue report.

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions