Liquid, JavaScript, themes, sales channels
Hello! How can i add metafields to cart.items object in cart.js api?
You can't. Metafields are custom fields you add to Shopify objects in the back end. You don't add metafields through front end AJAX APIs.
Unless you're talking about line item properties which Shopify has good documentation on https://shopify.dev/api/ajax/reference/cart#private-properties-and-attributes
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024