Why is my metafield object empty in JavaScript?

Why is my metafield object empty in JavaScript?

Karankeetrax
Shopify Partner
3 1 1

 

 

 

 

function buildLabels(data) {
  console.log("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")
  console.log(data)
  console.log("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")
}

 

 

 

 

in the console the object
returns metafield [] empty, I don't know much about the shopify as a noob, I am not able to understand why its not pulling the values of custom meta fields on the collection page

 

 

 

 

 "metafields": [],

 

 

 

 

 

Replies 0 (0)