2

製品バリアントのいくつかの属性の有効な値に関する質問。

具体的には、バリアント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に表示されるfulfillment_serviceがフロントエンドに表示されないことに気付いたと思います。

さらに複雑なことに、ここにバリアント属性の定義を提供する別のヘルプ記事が書かれています。この記事の問題は、ヘルプドキュメントの他の場所には表示されないが、fulfillment_serviceと場合によってはinventory_managementの両方のバリアントに関連する値が含まれているように見える、「VariantInventoryTracker」と呼ばれるバリアント属性について言及していることです。

ここでの助けに本当に感謝します!

4

2 に答える 2

4

variant.inventory_management の有効な値は次のとおりです。 ["Shopify", "Shipline", ""]

variant.fulfillment_service の有効な値は次のとおりです。 ["Manual", "Shipwire", "Webgistix", "Amazon Marketplace Web"]

于 2012-12-10T15:06:24.797 に答える
1

最新の API ドキュメントについては、API ドキュメント を使用してください。API ドキュメントは自動的に生成されますが、wiki は明らかに時代遅れです。バリアント 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
  }
}

これはあなたの質問に答えるべきだと思います。補足として、私たちのドキュメントは積極的にリホールされているので、それが展開されれば、この種のことは将来問題になることはありません.

于 2012-12-07T18:15:49.913 に答える