Solved

The product rating standard metafield definition is missing

DanteFXX
Shopify Partner
14 2 6

Hi guys,

 

I want to use the standard metafields for product avg rating and product rating count.

https://shopify.dev/docs/apps/custom-data/metafields/definitions/standard#list-of-standard-metafield...

 

Product rating (id#6)

Product rating count (id#7)

 

I've got 2 stores - one created a year ago and a new one. The GraphQL query isn't fetching these templates for either store.

 

DanteFXX_0-1702320047217.png

 

 

In the old store the metafields were manually created a while back and they're there.

 

DanteFXX_1-1702320215053.png

 

But in the new store they're not even an option.

 

DanteFXX_3-1702320625645.png

 

Any ideas where they went? I didn't find any information that they are deprecated.

 

Accepted Solution (1)

DanteFXX
Shopify Partner
14 2 6

This is an accepted solution.

Despite the templates not being in the list, the metafields are successfully created programmatically using their template IDs:

 

gid://shopify/StandardMetafieldDefinitionTemplate/6

gid://shopify/StandardMetafieldDefinitionTemplate/7

 

 

View solution in original post

Reply 1 (1)

DanteFXX
Shopify Partner
14 2 6

This is an accepted solution.

Despite the templates not being in the list, the metafields are successfully created programmatically using their template IDs:

 

gid://shopify/StandardMetafieldDefinitionTemplate/6

gid://shopify/StandardMetafieldDefinitionTemplate/7