使用 XML 管理亞馬遜商品教程5——關系輸入數據架構
關系上傳數據允許您為目錄中的不同商品之間建立可選關系。有兩種類型的關系:
變體 — 這是最常見的關系類型。它允許買家從同一商品的一系列變體中進行挑選。例如,一件襯衫可能有很多尺碼和顏色。主商品(父項 SKU)是該襯衫一般情況下的類型。它沒有尺碼、顏色、商品價格或數量,并且不能購買。變體(子項 SKU)是襯衫所有不同的尺碼和顏色的結合,并且可以購買。(請看下面的圖表。)
上傳新的父/子關系的關系上傳數據之前,上傳 SKU 的商品上傳數據。在該上傳數據中,指定父項 SKU 為“父項”,方法是使用 父子商品 元素,并且指定子項 SKU 是如何變化的(例如尺寸或尺寸顏色),方法是使用 變體主題 元素。同樣地,將每個子項 SKU 指定為“子項”,方法是使用 父子商品 元素,并且指定相同的變體主題,方法與為父項 SKU 指定變體主題一樣。
請注意,是變體主題和它相關的屬性(例如變體主題顏色尺寸的顏色和尺寸)是在您的商品上傳數據里定義的。關系上傳數據只能構建父項商品和子項商品之間的實際關系。
注意:每個類別對于其變體都有單獨的特定要求。請查看一個指定類別的商品 XSD 了解如何為該類別創建變體關系。
配件 — 一些商品可以劃分成為其他商品的配件。例如,一件便攜式無線電電子產品可能會把電池和外接揚聲器當成配件。與之類似,手套也可能被指定為帽子的配件。
元素 | 描述 |
父項 SKU | 有多個變體的商品的主 SKU |
關系 | 子項 SKU 和關系信息的類型分為以下部分: SKU — 用來識別一項單獨商品,即父項 SKU 的一個(子項)變體。 |
https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/Relationship.xsd
<!- Revision="$Revision: #1 $"
-->
<xsd:schema elementFormDefault="qualified">
<xsd:include schemaLocation="amzn-base.xsd" />
<xsd:element name="Relationship">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ParentSKU" type="SKUType" />
<xsd:element name="Relation" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="SKU" />
<xsd:element name="Type">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Variation" />
<xsd:enumeration value="DisplaySet" />
<xsd:enumeration value="Collection" />
<xsd:enumeration value="Accessory" />
<xsd:enumeration value="Customized" />
<xsd:enumeration value="Part" />
<xsd:enumeration value="Complements" />
<xsd:enumeration value="Piece" />
<xsd:enumeration value="Necessary" />
<xsd:enumeration value="ReplacementPart" />
<xsd:enumeration value="Similar" />
<xsd:enumeration value="Episode" />
<xsd:enumeration value="Season" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<?xml version="1.0" encoding="utf-8" ?>
<AmazonEnvelope noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>M_SELLER_354577</MerchantIdentifier>
</Header>
<MessageType>關系</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>更新</OperationType>
<Relationship>
<ParentSKU>5555_5556</ParentSKU>
<Relation>
<SKU>555540352 </SKU>
<Type>變體</Type>
</Relation>
<Relation>
<SKU>555685952 </SKU>
<Type>變體</Type>
</Relation>
<Relation>
<SKU>555690352 </SKU>
<Type>變體</Type>
</Relation>
<Relation>
<SKU>555690552 </SKU>
<Type>變體</Type>
</Relation>
<Relation>
<SKU>555690752 </SKU>
<Type>變體</Type>
</Relation>
<Relation>
<SKU>555690952 </SKU>
<Type>變體</Type>
</Relation>
</Relationship>
</Message>
</AmazonEnvelope>
Establish Product Relationships - Relationship Feed Schema (not applicable to all categories)
Description
The Relationship feed allows you to set up optional relationships between items in your catalog. There are two types of relationships:
Variation – This is the most common type of relationship. It allows customers to select from a list of variations of the same product. For example, a shirt might come in a variety of sizes and colors. The main item (parent SKU) is the type of shirt in general. It does not have a size, color, price, or quantity and is not buyable. The variations (child SKUs) are all of the different size and color combinations of the shirt, and are buyable. (See the diagram below.)
Before uploading a relationship feed for a new parent/child relationship, upload the product feed for the SKUs. In that feed, designate the parent SKU as "parent" using the Parentage element, and designate how the child SKUs will vary (for example, Size or SizeColor) using the VariationTheme element. Likewise, designate each child SKU as "child" using the Parentage element, and designate the same VariationTheme as for the parent SKU.
Note that VariationTheme as well as its associated attributes (for example, Size and Color for the VariationTheme SizeColor) are defined in your product feed. The Relationship feed only builds the actual relationships between the parent and child items.
Note: Each category has individual specific requirements for variations. See the product XSD for a specific category to learn how to set up a variation relationship for that category.
Accessory – Some items can be classified as accessories for other items. For example, a portable radio electronics item might have batteries and external speakers as accessories. Similarly, a pair of gloves might be designated as accessories for a hat.
Dictionary
Element
Description
ParentSKU
The master SKU for a product with variations
Relation
Child SKU and type of relationship information, broken into the following components:
SKU – Used to identify an individual product, one (child) variation of the parent SKU
Type – Type of relationship, variation or accessory
XSD
https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/Relationship.xsd
<!- Revision="$Revision: #1 $"
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:include schemaLocation="amzn-base.xsd" />
<xsd:element name="Relationship">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ParentSKU" type="SKUType" />
<xsd:element name="Relation" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="SKU" />
<xsd:element name="Type">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Variation" />
<xsd:enumeration value="DisplaySet" />
<xsd:enumeration value="Collection" />
<xsd:enumeration value="Accessory" />
<xsd:enumeration value="Customized" />
<xsd:enumeration value="Part" />
<xsd:enumeration value="Complements" />
<xsd:enumeration value="Piece" />
<xsd:enumeration value="Necessary" />
<xsd:enumeration value="ReplacementPart" />
<xsd:enumeration value="Similar" />
<xsd:enumeration value="Episode" />
<xsd:enumeration value="Season" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Example (Variation)
<?xml version="1.0" encoding="utf-8" ?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>M_SELLER_354577</MerchantIdentifier>
</Header>
<MessageType>Relationship</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Relationship>
<ParentSKU>5555_5556</ParentSKU>
<Relation>
<SKU>555540352</SKU>
<Type>Variation</Type>
</Relation>
<Relation>
<SKU>555685952</SKU>
<Type>Variation</Type>
</Relation>
<Relation>
<SKU>555690352</SKU>
<Type>Variation</Type>
</Relation>
<Relation>
<SKU>555690552</SKU>
<Type>Variation</Type>
</Relation>
<Relation>
<SKU>555690752</SKU>
<Type>Variation</Type>
</Relation>
<Relation>
<SKU>555690952</SKU>
<Type>Variation</Type>
</Relation>
</Relationship>
</Message>
</AmazonEnvelope>
Example (Accessory)
<?xml version="1.0" encoding="utf-8" ?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>M_SELLER_354577</MerchantIdentifier>
</Header>
<MessageType>Relationship</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Relationship>
<ParentSKU>ASUSVNA1</ParentSKU>
<Relation>
<SKU>ASUSVNA198714G</SKU>
<Type>Accessory</Type>
</Relation>
</Relationship>
</Message>
<Message>
<MessageID>2</MessageID>
<OperationType>Update</OperationType>
<Relationship>
<ParentSKU>FUJI32XD </ParentSKU>
<Relation>
<SKU>ALPSCARD0024</SKU>
<Type>Accessory</Type>
</Relation>
</Relationship>
</Message>
</AmazonEnvelope>
特別聲明:以上文章內容僅代表作者本人觀點,不代表ESG跨境電商觀點或立場。如有關于作品內容、版權或其它問題請于作品發表后的30日內與ESG跨境電商聯系。
二維碼加載中...
使用微信掃一掃登錄
使用賬號密碼登錄
平臺顧問
微信掃一掃
馬上聯系在線顧問
小程序
ESG跨境小程序
手機入駐更便捷
返回頂部