-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Closed
Copy link
Labels
Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failedMageconf_Contribution_DayPAPPartners acceleration programPartners acceleration programPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneProject: GraphQLReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Milestone
Description
If you add a ConfigurableCartItem to the Cart and then Query the Cart, this returns the Thumbnail of the Parent Product instead of the Variant that was selected.
Architecture proposal magento/architecture#380
Query
query CartQuery($cartId: String!) {
cart(cart_id: $cartId) {
...Cart
}
}
fragment Cart on Cart {
items {
id
quantity
product {
id
thumbnail {
label
url
}
}
... on ConfigurableCartItem {
configurable_options {
id
option_label
value_label
}
}
}
}
{code}
**Variables**
{code:java}
{
"cartId": "w74YbL1jbhlrdS95vWQM1mktppa9M3wI"
}
{code}
**Result**
{code:java}
{
"data": {
"cart": {
"items": <
{
"id": "241",
"quantity": 1,
"product": {
"id": 1410,
"thumbnail": {
"label": "Olivia 1/4 Zip Light Jacket",
"url": "https://carlos-233-3h6p5qa-a6terwtbk67os.demo.magentosite.cloud/media/catalog/product/cache/ca63cacbf9a8041003a3fd3abbbfe421/w/j/wj12-blue_main.jpg" Should be the Thumbnail for Purple Variant
}
},
"configurable_options": [
{
"id": 93,
"option_label": "Color",
"value_label": "Purple"
},
{
"id": 162,
"option_label": "Size",
"value_label": "XS"
}
]
}
>
}
}
}
Metadata
Metadata
Assignees
Labels
Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failedMageconf_Contribution_DayPAPPartners acceleration programPartners acceleration programPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneProject: GraphQLReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch