Skip to content

Configurable stock status is not correct when using custom stock (MSI) #36154

Open
@dekiakbar

Description

@dekiakbar

Preconditions and environment

  • Magento version : 2.4-develop with enterprise edition modules enabled, Magento 2.4.4 (CE), Magento 2.4.4 (EE)
  • PHP8.1
  • mariadb: 10.4
  • elasticsearch: 7.11
  • nginx: 1.19

Steps to reproduce

  • crate new source in admin > store > sources, i.e : source A
  • create new stock in admin > store > stock, i.e : custom stock
  • assign source A to Custom stock, and also assign custom stock to main website
  • create new configurable product, i.e : test product
    • add simple product to the configurable product in configuration tab
    • assign simple product to source A
    • fill quantity, i.e : 1
  • and save new created configurable product. (in this step the configurable product stock = In Stock)
  • now change the simple product :
    • Source Item Status : from In Stock to Out Of Stock
    • Qty : from 1 to 0
    • save simple product
  • check configurable product (the stock status is still In Stock, it must be Out Of Stock)

Expected result

  • The configurable product stock status must be In Stock when the child product Is In Stock and has Qty
  • The configurable product stock status must be Out Of Stock when the child product is Out Of Stock
  • in short, the configurable product status must be updated when a child's product status is changed.

Actual result

  • The configurable product stock status is Instock even if the child product Is Out of stock
  • in short, the configurable product status is not updated when the child product is updated.

Additional information

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

Adobe CommerceThe issue related to the Adobe Commerce(EE) or B2B functionalityArea: ProductComponent: ConfigurableProductIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReported on 2.4.4Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions