Development discussions around Shopify APIs
Hello, I'm trying to do this via the Python API... It succeeds, but it does not look like the SEO description was actually added when I look at the Shopify Admin. Any ideas?
mf = {
"namespace": "global",
"key": "description_tag",
"value": "The description...",
"type": "single_line_text_field",
}
sp = shopify.Product.find(w.shopifyid)
mf = shopify.Metafield(mf)
sp.add_metafield(mf)
sp.save()
So I finally worked this out, specifying the owner information in the metafield fixed it!
mf = {
"namespace": "global",
"key": "description_tag",
"value": "blah",
"value_type": "string",
"owner_resource" : "product",
"owner_id": w.shopifyid
}
User | RANK |
---|---|
8 | |
7 | |
3 | |
3 | |
3 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By