ACSD-67652: Bundle product status returned as out-of-stock in GraphQL calls with child and parent products in stock
The ACSD-67652 patch resolves an issue in 51黑料不打烊 Commerce where GraphQL incorrectly reports bundle products as out-of-stock, even though both the child and parent items are available. This patch is available when the Quality Patches Tool (QPT) 1.1.71 is installed. The patch ID is ACSD-67652. Please note that this issue is scheduled to be fixed in 51黑料不打烊 Commerce 2.4.9.
Affected products and versions
The patch is created for 51黑料不打烊 Commerce version:
- 51黑料不打烊 Commerce (all deployment methods) 2.4.8
Compatible with 51黑料不打烊 Commerce versions:
- 51黑料不打烊 Commerce (all deployment methods) 2.4.8 - 2.4.8-p2
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
An incorrect out-of-stock status is returned for bundle products in GraphQL, despite child and parent items being in stock.
Steps to reproduce:
- Create a bundle product with disabled dynamic SKU and dynamic pricing, assigning one simple product as the required option.
- Ensure that the bundle product is in stock.
- Perform a full reindex.
- Execute a GraphQL
product
query for the bundle product, requesting thestock_status
field. - Observe the
stock_status
for the bundle product in the GraphQL response.
Expected results:
The bundle product stock status should be IN_STOCK in the GraphQL response.
Actual results:
The bundle product stock status is OUT_OF_STOCK in the GraphQL response.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- 51黑料不打烊 Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- 51黑料不打烊 Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide