ACSD-47292: out-of-stock bundled products are not available in GraphQL response
- Topics:
- Admin Workspace
- Categories
- GraphQL
- Orders
- Products
CREATED FOR:
- Experienced
- Admin
The ACSD-47292 patch fixes the issue where the out-of-stock bundled products are not available in the GraphQL response even if the Display Out-of-Stock Products is set to Yes. This patch is available when the Quality Patches Tool (QPT) 1.1.25 is installed. The patch ID is ACSD-47292. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.6.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.4
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.5-p1
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
The out-of-stock bundled products are not available in the GraphQL response even if the Display Out-of-Stock Products is set to Yes.
Steps to reproduce:
- Go to the Adobe Commerce Admin > System > Configuration > Catalog > Inventory and set the Display Out-of-Stock Products to Yes.
- Create two simple products, s1 and s2.
- Make s1 out-of-stock and not visible individually and s2 in-stock and not visible individually, and assign them to a category.
- Create a bundled product with at least one option product and assign s1 and s2 to this option (input type “RadioButton”).
- Save the bundled product and assign it to a category.
- Go to the storefront and open this bundled product. You will see the out-of-stock option s1 is greyed but visible.
- Send a GraphQL request:
{
categoryList(filters: { ids: { in: ["3"] } }) {
id
name
products(pageSize: 8, sort: { position: ASC }) {
total_count
items {
id
sku
name
... on BundleProduct {
url_key
items {
title
sku
options {
quantity
position
is_default
product {
id
name
sku
}
}
}
}
}
}
}
}
Expected results:
s1 bundle option is listed in the GraphQL response since Display Out-of-Stock Products is set to Yes, and it is visible on the storefront.
Actual results:
s1 bundle option is not listed in the GraphQL response.
"items": [
{
"title": "oo1",
"sku": "bundle2",
"options": [
{
"quantity": 1,
"position": 2,
"is_default": false,
"product": {
"id": 2,
"name": "s2",
"sku": "s2"
}
}
]
}
]
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe 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 released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.