-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Bundle Product Wishlist GraphQL Returns All Options Instead of Selected, Leading to Incorrect Price #39855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @lintots. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-November. Thank you for working on this issue.
|
Hello @lintots , Thank you for your report and collaboration. We attempted to reproduce the issue in the latest 2.4-develop and 2.4.8. We are able to reproduce the issue. Steps to Reproduce:
query GetWishlist { ... on BundleProduct { Response { We followed the preconditions and steps as provided and encountered the issue. Therefore, we are marking this ticket as "Issue: Confirmed." Thank you! |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-14521 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
Preconditions and environment
When adding a bundle product to the wishlist via GraphQL, all available options are returned, even if some are not selected by the customer. This causes the default price to be shown instead of the customized price based on the selected options.
Steps to reproduce
Expected result
Only the selected bundle options should be returned in the GraphQL response, and the price should reflect the selected configuration (customized price).
Actual result
All options for the bundle product are returned, causing the default price to be displayed instead of the price for the selected options.
Additional information
query GetWishlist {
customer {
wishlists {
id
items {
id
qty
product {
name
sku
... on GroupedProduct {
grouped_items {
product {
name
sku
}
qty
}
}
... on BundleProduct {
items {
option_id
title
required
type
options {
id
label
quantity
product {
sku
name
price_range {
minimum_price {
final_price {
value
}
}
}
}
}
}
}
}
}
}
}
}
Output
{
"data": {
"customer": {
"wishlists": [
{
"id": "73",
"items": [
{
"id": 170,
"qty": 1,
"product": {
"name": "Sprite Yoga Companion Kit",
"sku": "24-WG080",
"items": [
{
"option_id": 1,
"title": "Sprite Stasis Ball",
"required": true,
"type": "radio",
"options": [
{
"id": 18,
"label": "Sprite Foam Yoga Brick",
"quantity": 1,
"product": {
"sku": "24-WG084",
"name": "Sprite Foam Yoga Brick",
"price_range": {
"minimum_price": {
"final_price": {
"value": 5
}
}
}
}
},
{
"id": 19,
"label": "Sprite Foam Roller",
"quantity": 1,
"product": {
"sku": "24-WG088",
"name": "Sprite Foam Roller",
"price_range": {
"minimum_price": {
"final_price": {
"value": 19
}
}
}
}
}
]
},
{
"option_id": 2,
"title": "Sprite Foam Yoga Brick",
"required": true,
"type": "radio",
"options": [
{
"id": 20,
"label": "Sprite Stasis Ball 55 cm",
"quantity": 1,
"product": {
"sku": "24-WG081-pink",
"name": "Sprite Stasis Ball 55 cm",
"price_range": {
"minimum_price": {
"final_price": {
"value": 23
}
}
}
}
},
{
"id": 22,
"label": "Sprite Stasis Ball 65 cm",
"quantity": 1,
"product": {
"sku": "24-WG082-gray",
"name": "Sprite Stasis Ball 65 cm",
"price_range": {
"minimum_price": {
"final_price": {
"value": 27
}
}
}
}
},
{
"id": 28,
"label": "Sprite Stasis Ball 75 cm",
"quantity": 1,
"product": {
"sku": "24-WG083-gray",
"name": "Sprite Stasis Ball 75 cm",
"price_range": {
"minimum_price": {
"final_price": {
"value": 32
}
}
}
}
}
]
},
{
"option_id": 3,
"title": "Sprite Yoga Strap",
"required": true,
"type": "radio",
"options": [
{
"id": 23,
"label": "Sprite Stasis Ball 55 cm",
"quantity": 1,
"product": {
"sku": "24-WG081-gray",
"name": "Sprite Stasis Ball 55 cm",
"price_range": {
"minimum_price": {
"final_price": {
"value": 23
}
}
}
}
}
]
},
{
"option_id": 4,
"title": "Sprite Foam Roller",
"required": true,
"type": "radio",
"options": [
{
"id": 24,
"label": "Sprite Stasis Ball 75 cm",
"quantity": 1,
"product": {
"sku": "24-WG083-gray",
"name": "Sprite Stasis Ball 75 cm",
"price_range": {
"minimum_price": {
"final_price": {
"value": 32
}
}
}
}
},
{
"id": 25,
"label": "Sprite Stasis Ball 65 cm",
"quantity": 1,
"product": {
"sku": "24-WG082-blue",
"name": "Sprite Stasis Ball 65 cm",
"price_range": {
"minimum_price": {
"final_price": {
"value": 27
}
}
}
}
}
]
}
]
}
}
]
}
]
}
}
}
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: