Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
I am using below code to add metafields data from store admin. It's working fine before but from last few days it's not working anymore.
window.parent.$ && window.parent.$
window.parent.fetch
$.ajax({
url: '/admin/api/2019-07/metafields.json',
data: {
"metafield": {
"namespace": "sepc",
"description": "My name is "+thname,
"key": name,
"value": "user name",
"value_type": "string"
}
},
success: function(result) {
console.log(result)
//alert("success?");
}
}).done(function() {
document.querySelector('#access-btn').innerHTML = 'Active '+name;
window.location.reload();
}).fail(function() {
alert('fail')
});
Now above code not working and can't see entry in metafeilds. Is there any updated in shopify or API?
User | RANK |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |