【问题标题】:Clarification on valid values for Shopify API Product Variants关于 Shopify API 产品变体的有效值的说明
【发布时间】:2012-12-02 01:06:47
【问题描述】:

关于产品变体某些属性的有效值的问题。

特别是变体inventory_management 属性和fulfillment_service 属性存在混淆。

首先,这里是商店管理员输出的变体的一些 JSON:

compare_at_price: "39.99"
created_at: "2012-02-18T20:14:40-05:00"
fulfillment_service: "manual"
grams: 0
id: 201382272
inventory_management: "shopify"
inventory_policy: "deny"
inventory_quantity: -1
option1: "Gold"
option2: null
option3: null
position: 1
price: "29.99"
product_id: 85812592
requires_shipping: true
sku: "charm amethyst"
taxable: true
title: "Gold"
updated_at: "2012-12-01T19:29:32-05:00"

现在,这里是 Shopify 帮助文档的链接,解释了所有变体属性的有效值:

http://wiki.shopify.com/Variant#variant.inventory_management

尽管此链接将您带到看起来像流动代码的地方,但我希望我们可以期待后端的相同属性重新出现在前端。在大多数情况下,它们都是这样做的,这里是前面提到的链接中提供的所有属性的列表:

1 variant.id
2 variant.title
3 variant.price
4 variant.compare_at_price
5 variant.available
6 variant.inventory_management
7 variant.inventory_quantity
8 variant.inventory_policy
9 variant.weight
10 variant.sku
11 variant.option1
12 variant.option2
13 variant.option3
14 variant.options
15 requires_shipping
16 taxable

希望您已经注意到出现在后端 API 上的履行服务未在前端表示。

为了使事情进一步复杂化,已经编写了另一篇帮助文章来提供变体属性here 的定义。这篇文章的问题在于它提到了一个名为“Variant Inventory Tracker”的变体属性,它没有出现在帮助文档的其他任何地方,但似乎包含与fulfillment_service 和可能的inventory_management 变体相关的值。

非常感谢这里的帮助!

【问题讨论】:

    标签: shopify


    【解决方案1】:

    variant.inventory_management 的有效值为 ["Shopify", "Shipline", ""]

    variant.fulfillment_service 的有效值为 ["Manual", "Shipwire", "Webgistix", "Amazon Marketplace Web"]

    【讨论】:

    • 这些值还成立吗?
    【解决方案2】:

    有关最新的 API 文档,请使用我们的 API docs。 API 文档是自动生成的,而 wiki 显然已经过时了。来自 Variant API 文档:

    {
      "variant": {
        "compare_at_price": null,
        "created_at": "2012-12-06T17:33:56-05:00",
        "fulfillment_service": "manual",
        "grams": 200,
        "id": 808950810,
        "inventory_management": "shopify",
        "inventory_policy": "continue",
        "option1": "Pink",
        "option2": null,
        "option3": null,
        "position": 1,
        "price": "199.00",
        "product_id": 632910392,
        "requires_shipping": true,
        "sku": "IPOD2008PINK",
        "taxable": true,
        "title": "Pink",
        "updated_at": "2012-12-06T17:33:56-05:00",
        "inventory_quantity": 10
      }
    }
    

    我认为这应该回答您的问题。作为旁注,我们的文档正在积极地进行重新调整,因此一旦推出,这种事情在未来应该不会成为问题。

    【讨论】:

    • 对不起@LydiaKrupp-Hunter,但您的回答让我参考了我引用的相同文档,这是造成混乱的原因。
    • 关注 API 文档,您可以完全忽略您找到的 wiki 文档。
    • 这没有回答主要问题,可以归结为:CSV 导入字段中的“Variant Inventory Tracker”是否 == API 中的 variant.inventory_management?如果是这样,为什么 api 文档会说“有效值为:空白:Shopify 不跟踪此产品变体的库存商品数量;shopify:Shopify 确实跟踪此产品变体的库存商品数量。”但 CSV 文档说有效值为 ["shopify"、"shipwire"、"amazon_marketplace_web"] 或空白
    猜你喜欢
    • 2016-08-13
    • 1970-01-01
    • 2013-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-06
    • 1970-01-01
    相关资源
    最近更新 更多