Solved

Metafield definitions for owner type SHOP not accessible in admin

ocastx
Shopify Partner
30 5 11

When creating metafield definitions using metafieldDefinitionCreate we can select different ownerType arguments like SHOP. Furthermore, we can describe the access mode, to let merchants see and modify these metafield values using admin.MERCHANT_READ_WRITE. When creating a metafield definition though using the API and owner type SHOP the admin does not show any Shop metafield definitions as seen here: 

 

ocastx_0-1709190294977.png

For other owner types this works as expected, though not for Shop metafield definitions. Is this a known limitation? 

Accepted Solution (1)

Liam
Shopify Staff
2731 299 769

This is an accepted solution.

Hi Ocastx - that lack of a UI on the admin for SHOP metafields is a known limitation, unfortunately there's no timeline for implementing this at the moment. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 6 (6)

Liam
Shopify Staff
2731 299 769

Hi Ocastx,

 

I've asked the custom data team about this and will report back what I hear.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

kpowelltech
Shopify Partner
3 0 0

To piggy back off of this, I'm trying to access SHOP metafields via the Storefront API; however, the metafield namespace and key are returning null.  

 

https://shopify.dev/docs/api/storefront/2024-01/queries/shop

kpowelltech
Shopify Partner
3 0 0

To piggyback off of this, I'm trying to access SHOP metafields via the Storefront API; however, the metafield namespace and key are returning null.  

 

https://shopify.dev/docs/api/storefront/2024-01/queries/shop

Liam
Shopify Staff
2731 299 769

This is an accepted solution.

Hi Ocastx - that lack of a UI on the admin for SHOP metafields is a known limitation, unfortunately there's no timeline for implementing this at the moment. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

ocastx
Shopify Partner
30 5 11

Hey Liam, thanks for the quick update – appreciate it! 

Just so that I understand it right: SHOP metafields are still safe to use though, there is just no UI for the merchant to edit those in admin. Is that correct? 

Liam
Shopify Staff
2731 299 769

Exactly - there's no risk in using them via the API, there's just no UI for them for merchants to interact with.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog