Shopify themes, liquid, logos, and UX
Can I add data to customer metafiled. It's type is 'products' (list of products). I would like to create a button for every product, that adds them to wishlist page and also to customer metadata.
Solved! Go to the solution
This is an accepted solution.
We need to add an app for the wishlist so that we can use it on every page of the website and for a particular product we can use a meta field.
Hello @kurs , Welcome to the Shopify Community!
Yes, you can add data to customer metafields in Shopify. To create a wishlist functionality that also updates customer metafields with product data:
If you need more assistance, provide further details.
Thank you for answear. How can I use javascript and apis for adding values to customer metafields? Right now I have simple javascript code incorporated in theme code, that saves products to localstorage. Every product and product card has like button, that updates wishlist and wishlist page. I've also created metafield for customers to store liked products (type: list of products).
This is an accepted solution.
We need to add an app for the wishlist so that we can use it on every page of the website and for a particular product we can use a meta field.
Find Global Growth Opportunities For Your Business with Shopify AcademyLearn how to exp...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025