I have added product metafields to my shopify and is giving success response but are not displayed on the product details. here is my nodejs code which is giving success response.
const response = await fetch(`https://mystore.myshopify.com/admin/api/2020-07/products/5709040025760/metafields.json`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
"X-Shopify-Access-Token": accessToken,
},
body: JSON.stringify({
"metafield": {
"namespace": "type",
"key": "type",
"value": "test type",
"value_type": "string"
}
})
})
const responseJson = await response.json();
Basically, I want is when user/customer click on product there should be a new field in product that is type. Can anyone help me how to display it.