-
Notifications
You must be signed in to change notification settings - Fork 154
GraphQl-622: No possibility to update customizable_options in updateCartItems mutation #626
GraphQl-622: No possibility to update customizable_options in updateCartItems mutation #626
Conversation
# Conflicts: # app/code/Magento/QuoteGraphQl/Model/Resolver/UpdateCartItems.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rogyar, please, align code to last changes in mainline
thanks
Also, need to cover functionality with API-functional tests
If you would like you can create a separate ticket for this
I'm currently working on the tests. Thank you |
*/ | ||
private function validateCartItem(Item $cartItem): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that all the validations and error handling are moved here https://github.com/magento/graphql-ce/pull/626/files#diff-23947b0596c6c269244b8667cb99db1aR46
Api-functional tests for this feature are done. I will fix other api-functional tests soon. |
…le-options-update-cart
Merged last mainline |
@rogyar could you please share your knowledge? What does it mean |
Tried to update Virtual Product with multiple customizable option and something always goes wrong for me. {
"errors": [
{
"message": "Could not update cart item: The product's required option(s) weren't entered. Make sure the options are entered and try again.",
"category": "graphql-input",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"updateCartItems"
]
}
],
"data": {
"updateCartItems": null
}
} Fixture It looks like multiple and checkbox are not covered. |
I found that after every update request that succeeded the |
Hi @TomashKhamlai. As for incremented |
Hi @TomashKhamlai. I've just added support for multi-select custom options as well |
…le-options-update-cart
…s mutation - code style + minor fixes
Hi @naydav, thank you for the review.
|
Hi @rogyar, thank you for your contribution! |
…ns in updateCartItems mutation #626
Description (*)
This PR introduces a possibility to update customisable options for cart items using
updateCartItems
mutation.Fixed Issues (if relevant)
Manual testing scenarios (*)
updateCartItems
mutation to update the customizable options in the following way