Metafields in Ajax Cart Shopify


I am curious if you can get products Meta Fields within the ajax cart? For example, I have a Metafield for some product to show the customized image and would like to show that image to the product instead of showing the original image of the product in the cart.

Didn’t find any template that return product params to cart.json

I’m using Brooklyn theme and Admin API call to manage the theme content.

Any help is much appreciated. Thanks!

Hi @shamon-armia,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.


Hi @shamon-armia,

Thanks for being part of the GitHub Community Forum! We’re glad you’re here.

I wanted to jump in here, and mention that if you don’t get the help you’re looking for from this particular community, you might want to try getting help somewhere that focuses on Shopify. It’s definitely possible another GitHub user might have run into this same issue and can help, but the GitHub Community Forum focuses primarily on topics related to GitHub, Git, and development projects hosted on GitHub. We want to make sure you’re getting the best support you can, but this forum may not be the right place for this particular topic.

Best of luck!