在Shopify中获取产品集合名称

在Shopify中获取产品集合名称,shopify,Shopify,在Shopify中,如何获取特定产品所属的自定义集合的名称 例如,要获取SKU我可以使用{line\u item.SKU}或要获取价格我可以使用中的{{line\u item.line\u Price列出特定产品id的所有自定义集合: GET /admin/custom_collections.json?product_id=632910392 答复: HTTP/1.1 200 OK { "custom_collections": [ { "body_html": "

在Shopify中,如何获取特定产品所属的自定义集合的名称

例如,要获取SKU我可以使用
{line\u item.SKU}
或要获取价格我可以使用中的
{{line\u item.line\u Price

列出特定产品id的所有自定义集合:

GET /admin/custom_collections.json?product_id=632910392
答复:

HTTP/1.1 200 OK

{
  "custom_collections": [
    {
      "body_html": "<p>The best selling ipod ever</p>",
      "handle": "ipods",
      "id": 841564295,
      "published_at": "2008-02-01T19:00:00-05:00",
      "sort_order": "manual",
      "template_suffix": null,
      "title": "IPods",
      "updated_at": "2008-02-01T19:00:00-05:00",
      "image": {
        "created_at": "2012-12-11T12:01:29-05:00",
        "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/collections/ipod_nano_8gb.jpg?0"
      }
    }
  ]
}
HTTP/1.1200正常
{
“自定义_集合”:[
{
“body_html”:“有史以来最畅销的ipod”,
“句柄”:“iPod”,
“id”:841564295,
“发布时间”:“2008-02-01T19:00:00-05:00”,
“排序顺序”:“手动”,
“模板后缀”:空,
“标题”:“iPod”,
更新日期:“2008-02-01T19:00:00-05:00”,
“图像”:{
“创建时间”:“2012-12-11T12:01:29-05:00”,
“src”:http://cdn.shopify.com/s/files/1/0006/9093/3842/collections/ipod_nano_8gb.jpg?0"
}
}
]
}

API文档链接不再指向适当的位置;新的URL是