通过 API 在 Shopify 中创建未发布的产品
Create unpublished product in Shopify via API
在 Shopify Admin 中,每个产品都有一系列复选框,允许用户在 Online store
、Point of sale
、Buy button
和 Mobile app
之间切换。
这是它的样子:
我正在通过 API 将产品推送到 Shopify。
如何通过 Shopify API 推送隐藏在网络上的产品?
我深入研究,以下是每个配置的设置:
---
Online store ✓
Point of sale
Buy button
Mobile app
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "web",
---
Online store ✓
Point of sale ✓
Buy button
Mobile app
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",
---
Online store ✓
Point of sale ✓
Buy button ✓
Mobile app
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",
---
Online store ✓
Point of sale ✓
Buy button ✓
Mobile app ✓
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",
---
Online store ✓
Point of sale
Buy button ✓
Mobile app ✓
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "web",
---
Online store
Point of sale
Buy button ✓
Mobile app ✓
published_at: null,
published_scope: "web",
---
Online store
Point of sale
Buy button
Mobile app
published_at: null,
published_scope: "web",
---
我对此进行测试的一般观察如下。
- 无法检测产品是否启用了
Buy button
或 Mobile app
。
- 无法在 API 中切换这些字段。
published_scope
属性有两个选项web
和global
在所有渠道(web
和 poc
)隐藏产品。
将其包含在产品请求中。
"published": false,
"published_scope": "web",
在 Shopify Admin 中,每个产品都有一系列复选框,允许用户在 Online store
、Point of sale
、Buy button
和 Mobile app
之间切换。
这是它的样子:
我正在通过 API 将产品推送到 Shopify。
如何通过 Shopify API 推送隐藏在网络上的产品?
我深入研究,以下是每个配置的设置:
---
Online store ✓
Point of sale
Buy button
Mobile app
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "web",
---
Online store ✓
Point of sale ✓
Buy button
Mobile app
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",
---
Online store ✓
Point of sale ✓
Buy button ✓
Mobile app
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",
---
Online store ✓
Point of sale ✓
Buy button ✓
Mobile app ✓
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",
---
Online store ✓
Point of sale
Buy button ✓
Mobile app ✓
published_at: "2016-02-18T17:14:00-05:00",
published_scope: "web",
---
Online store
Point of sale
Buy button ✓
Mobile app ✓
published_at: null,
published_scope: "web",
---
Online store
Point of sale
Buy button
Mobile app
published_at: null,
published_scope: "web",
---
我对此进行测试的一般观察如下。
- 无法检测产品是否启用了
Buy button
或Mobile app
。 - 无法在 API 中切换这些字段。
published_scope
属性有两个选项web
和global
在所有渠道(web
和 poc
)隐藏产品。
将其包含在产品请求中。
"published": false,
"published_scope": "web",