Closed
Description
Preconditions (*)
- Magento 2.3.4
- Config product with custom options
Steps to reproduce (*)
- Create config product with custom options
- Add product to cart (addConfigurableProductsToCart) using this mutation
mutation {
addConfigurableProductsToCart(
input: {
cart_id: "IkzvsoUeXwvb6g2jrdqVNmuXPqmznAqI"
cart_items: [
{
parent_sku: "config-sku"
data: {
quantity: 1
sku: "config-sku-White"
}
customizable_options:[
{
id:2
value_string:"4"
}
] } ]
}
) {
cart {
items {
id
quantity
product {
name
sku
}
... on ConfigurableCartItem {
configurable_options {
option_label
value_label
value_id
}
customizable_options {
label
values {
value
}
} } }
}
}
}
Expected result (*)
- Configurable product will add to cart
Actual result (*)
{
"errors": [
{
"debugMessage": "Notice: Undefined index: option_value in /var/www/html/oxygen/vendor/magento/module-configurable-product-graph-ql/Model/Resolver/ConfigurableCartItemOptions.php on line 62",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 36,
"column": 11
}
],
"path": [
"addConfigurableProductsToCart",
"cart",
"items",
0,
"configurable_options"
]
}
],
"data": {
"addConfigurableProductsToCart": {
"cart": {
"items": [
null
]
}
}
}
}
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedOnce P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchAffects critical data or functionality and forces users to employ a workaround.
Type
Projects
Status
Done