Solved

Custom fields for products (not for public)

Wasaabi
Visitor
2 0 0

I have been tasked with adding a custom tracking profile to each product added to the store, so that we can follow the life cycle of new products based on an Invoice number of how the were received into the store.

For Example:
Invoice from Company XYZ - ID: 001
- Item 1 - ID: 00a1
- Item 2 - ID: 00a2
- Item 3 - ID: 00a3

I need to store in the product:
InvoiceID: 001
InvoiceItemID: 00a1

So that when it is purchased, I can track the item from a specific Invoice all the way through to the point of sale.  And I will be doing so through REST API access.

I have read that I need to use the Metafield Editor, but I cannot find that where it tells me that it is supposed to be (Settings -> Metafield Editor)

Admin_settings_view.png

Does anyone have the info on how to access this editor?  Or if it does not exist anymore - how I can accomplish this task?

Thanks!

Accepted Solution (1)

Dynasort
Shopify Partner
56 5 12

This is an accepted solution.

Hello @Wasaabi 
To edit metafields you'll either need to use the REST API directly or use an app. There are several Metafield apps in the app store, many are free.

If you want to automate this, perhaps using something like Integromat or Zapier as they both offer automated workflows and shopify API connections.

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort

View solution in original post

Replies 5 (5)

Dynasort
Shopify Partner
56 5 12

This is an accepted solution.

Hello @Wasaabi 
To edit metafields you'll either need to use the REST API directly or use an app. There are several Metafield apps in the app store, many are free.

If you want to automate this, perhaps using something like Integromat or Zapier as they both offer automated workflows and shopify API connections.

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort
Wasaabi
Visitor
2 0 0

@Dynasort I did not see in the REST API docs where I could create meta fields using that method.  

Just to clarify - If I use the REST API to create or update products, I can add and modify the Meta fields and values ad-hoc?  Because if this is the case - then it answers my question perfectly!

Thanks!

Dynasort
Shopify Partner
56 5 12

@Wasaabi You bet. Here's the endpoints for all Shopify objects that have metafield values, along with descriptions on the API calls:
https://shopify.dev/docs/admin-api/rest/reference/metafield

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort
James_TGP
Shopify Partner
34 2 6

Keep it easy and download a metafields app.

youll be able to create custom fields for public and/or private.

you can the use https://apps.shopify.com/specification-charts to display the public custom fields on the product pages.

pvoulg
Shopify Partner
178 26 59

Hi @Wasaabi,

Though I'm not 100% sure I understand what you're trying to accomplish, nevertheless Metafields Editor is an app, which you can install on your store and access directly through the Apps menu link. You will be able to create and update fields for each product (collection, customer, order, etc) from there. 

 

Panos Voulgaris
Creative director / Partner @ MALVI
Founder @ function( )