Hello,
We at Shogun are building out a feature involving the use of the Cart Transform Function API to change the title and image of line items, and are encountering an issue that appears to be on Shopify’s end.
Our function conditionally changes the title and image of a line item in the cart using the lineUpdate operation, but there appears to be inconsistency in what is being persisted. The updated title does successfully persist everywhere – cart, checkout, and order. The image, however, is only being changed within checkout itself – the cart and resulting order still show the incorrect (original) image.
Cart:
Checkout:
Order:
Looking at the cart object, I can see the title is persisting the altered version, but the image is still referencing the original image:
The original image URL is https://cdn.shopify.com/s/files/1/0742/8305/7468/files/preview_images/d5ff1265f33e427cba75cc27b5e1e2f5.thumbnail.0000000000.jpg?v=1769110695, while the updated and expected URL is https://cdn.shopify.com/s/files/1/0742/8305/7468/products/2406ea4db27c3e7bbc7f77d9d6ce1fa8_c804bade-fa55-4a83-8917-1cfcd65ae269.jpg?v=1698768857.
Looking at the logs for the cart transform function, I can confirm it is returning the correct image URL:
Output (277 bytes):
{
"operations": [
{
"update": {
"cartLineId": "gid://shopify/CartLine/9a50aad9-ec20-4b2c-af72-66f84fc1ae43",
"image": {
"url": "https://cdn.shopify.com/s/files/1/0742/8305/7468/products/2406ea4db27c3e7bbc7f77d9d6ce1fa8_c804bade-fa55-4a83-8917-1cfcd65ae269.jpg?v=1698768857"
},
"price": null,
"title": "The BEST Tee"
}
}
]
}
I am testing this on a Plus Partner Sandbox shop, and have confirmed that in my theme liquid that it uses the line item’s title/price, and that it’s not pulling this data from the product/variant.
From everything I can find on the documentation, this should be working. At this point, it suggests the issue being on Shopify’s end. Any help in getting to the bottom of this and resolving the issue would be greatly appreciated.
Let me know if I can provide anything else to be of help.
Thank you,
Adam



