Hello,
Based on my custom conditions for the product, I have just worked with Bundle items to be displayed.
In the checkout page, the Bundle items function partially works, but the Main product is still displayed separately, and we want it to merge with the child item.
- Main Product: 10 things I love’ Personalised Scratch Card Kit
- Merge gift product: Gift Sleeve.
I have issue on the checkout page, Cart transform bundle operation works but main product line item is not removed from the checkout page.
Cart transform input:
{
"cart": {
"lines": [
{
"id": "gid://shopify/CartLine/5e9e6834-5cc2-43dc-a5d0-2c13f172754f",
"quantity": 1,
"cost": {
"amountPerQuantity": {
"amount": "5.0"
}
},
"merchandise": {
"id": "gid://shopify/ProductVariant/46124831899893",
"sku": "GIFTSLEEVE1",
"__typename": "ProductVariant",
"product": {
"id": "gid://shopify/Product/8916674347253",
"title": "Gift Sleeve",
"giftWrap": null,
"giftSleeve": null
}
}
},
{
"id": "gid://shopify/CartLine/cf389645-f3a6-4f7d-b709-ec2e89e405a6",
"quantity": 1,
"cost": {
"amountPerQuantity": {
"amount": "11.0"
}
},
"merchandise": {
"id": "gid://shopify/ProductVariant/46119626408181",
"sku": "",
"__typename": "ProductVariant",
"product": {
"id": "gid://shopify/Product/8916687257845",
"title": "10 things I love' Personalised Scratch Card Kit",
"giftWrap": {
"value": "true"
},
"giftSleeve": {
"value": "[\"gid://shopify/Product/8916674347253\"]"
}
}
}
}
]
}
}
Also Merge Operation looks correct for me,
{
"operations": [
{
"merge": {
"cartLines": [
{
"cartLineId": "gid://shopify/CartLine/5e9e6834-5cc2-43dc-a5d0-2c13f172754f",
"quantity": 1
}
],
"parentVariantId": "gid://shopify/ProductVariant/46119626408181"
}
}
]
}
But when we check the checkout page, Main product still displayed
as a separate line item. Also, Merge operation seems to be displayed but their price is from the child (gift item) item.
How to remove the main product line item and display it as merged with gift items and update the price with the merged item.
Let me know any changes are required from my end to fix this.
Thank you.