The ability to update the productVariant title inside the update operation, apart from just updating the title and price. #446
Replies: 3 comments 2 replies
-
Hi @mareenanazir , currently our UpdateOperation API supports updating the cart line title. Here's an example of the expected schema for the operation: {
"operations": [
{
"update": {
"cartLineId": "gid://shopify/CartLine/1",
"title": "Customized Line Item",
"image": {
"url": "https://cdn.shopify.com/[...]/custom-image.png"
},
"price": {
"adjustment": {
"fixedPricePerUnit": {
"amount": "100"
}
}
}
}
}
]
} To update the title, you'll need to nest it under the update key rather than within merchandise. However, this operation only updates the cart lines, not the merchandise values. You could use this to show the cart with the product title and then the cart line title below. Would that solve your needs or do you need a specific subtitle? Thanks for this question and feedback! 😄 |
Beta Was this translation helpful? Give feedback.
-
@aaackerman We have a similar need, added as feedback here: #415 |
Beta Was this translation helpful? Give feedback.
-
I also need this! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to update the product variant title, one which is shown below the actual product title.
This is my graphql query,
and thats how I'm trying to update the price and variant title, but its not working.
Can you please help if this is even possible?
Beta Was this translation helpful? Give feedback.
All reactions