Metafields // Updating a metafield object via the website

Metafields // Updating a metafield object via the website

Chris_Sydney
Shopify Partner
103 4 20

Hey, 

 

Wondering if it is possible to for website users to update metafields on a customer record. 

 

Effectively, I wanted to add some additional values to the customer metafields (birthday, product interest, etc) so that customers can fill them out.  

Replies 7 (7)

tim
Shopify Partner
3765 351 1385

Last time I checked you'd need an app for this. -- https://apps.shopify.com/customr 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail [email protected]
Chris_Sydney
Shopify Partner
103 4 20

Hey Tim, 

 

Yeah still looks like it from my reading, which kind of sucks tbh. 

 

I'm kind of mulling if I go and write some javascript to post via admin API, but there isn't specifically access control for metafields, they seem to inherently be related to the access scope of the parent (ie: customers), and not particularly in love with giving write access to the site. 😃

tim
Shopify Partner
3765 351 1385

Yeah, unsafe. So either an app or a middleware which will conceal your API credentials/limit the access scope...

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail [email protected]
Chris_Sydney
Shopify Partner
103 4 20

yeah exactly what I was thinking. I could chuck something in the middle obviously, then just post the update to the middleware, but it just seems so convoluted given the features of metafields and that obviously you can write this information in via the UX. 

Brett_Helium
Shopify Partner
270 51 120

Hey @Chris_Sydney, as far as I know this is still only available to do via an app, which could be a custom app if you wanted to create this functionality yourself using Shopify's APIs, or a public app such as Helium Customer Fields.

With the Customer Fields app, you can choose to either take advantage of our Javascript or REST APIs to implement your own custom functionality, or use our easy drag and drop form builder to create a form with custom fields and install it on your site for customers to either be able to register or update their account information.

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (350+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (280+ reviews)
Chris_Sydney
Shopify Partner
103 4 20

Hey Brett, 

 

Can this handle product list metafields?

 

Its interesting, I will have a look. I guess I was more keen to build out from scratch as it seems like it should be something thats would possible. 

Brett_Helium
Shopify Partner
270 51 120

Hey @Chris_Sydney,

We do not currently have any built in functionality for tracking products, but we do have some guides about how you could implement some sort of product likes or product views functionality using our API.

https://developers.customerfields.com/guides/product-likes/
https://developers.customerfields.com/guides/tracking-product-views/

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (350+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (280+ reviews)