Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey everyone!
We are currently building an app for which we need a custom preview image of the product on the line item within the cart. Now I know I can do it with line item properties and then change the theme liquid files to use the URL from the properties. But that requires us to know the structure of the theme and change it. Which is not ideal as it requires us to keep extending it for new themes. The cart API also doesn't seem to support setting the image for some reason. Is there a more generic way to change the thumbnail that does not depend on the theme?
Thanks for any help!
Trying to achieve the same for my shop here:
To attach custom-generated images to cart line-items. But then, won't we also like to have our custom image stay associated with that line item beyond the checkout process (fulfillment notifications, order history...)? I wonder if that is at all possible.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025