使用 XML 管理亞馬遜商品教程5——關(guān)系輸入數(shù)據(jù)架構(gòu)
關(guān)系上傳數(shù)據(jù)允許您為目錄中的不同商品之間建立可選關(guān)系。有兩種類型的關(guān)系:
變體 — 這是最常見(jiàn)的關(guān)系類型。它允許買家從同一商品的一系列變體中進(jìn)行挑選。例如,一件襯衫可能有很多尺碼和顏色。主商品(父項(xiàng) SKU)是該襯衫一般情況下的類型。它沒(méi)有尺碼、顏色、商品價(jià)格或數(shù)量,并且不能購(gòu)買。變體(子項(xiàng) SKU)是襯衫所有不同的尺碼和顏色的結(jié)合,并且可以購(gòu)買。(請(qǐng)看下面的圖表。)
上傳新的父/子關(guān)系的關(guān)系上傳數(shù)據(jù)之前,上傳 SKU 的商品上傳數(shù)據(jù)。在該上傳數(shù)據(jù)中,指定父項(xiàng) SKU 為“父項(xiàng)”,方法是使用 父子商品 元素,并且指定子項(xiàng) SKU 是如何變化的(例如尺寸或尺寸顏色),方法是使用 變體主題 元素。同樣地,將每個(gè)子項(xiàng) SKU 指定為“子項(xiàng)”,方法是使用 父子商品 元素,并且指定相同的變體主題,方法與為父項(xiàng) SKU 指定變體主題一樣。
請(qǐng)注意,是變體主題和它相關(guān)的屬性(例如變體主題顏色尺寸的顏色和尺寸)是在您的商品上傳數(shù)據(jù)里定義的。關(guān)系上傳數(shù)據(jù)只能構(gòu)建父項(xiàng)商品和子項(xiàng)商品之間的實(shí)際關(guān)系。
注意:每個(gè)類別對(duì)于其變體都有單獨(dú)的特定要求。請(qǐng)查看一個(gè)指定類別的商品 XSD 了解如何為該類別創(chuàng)建變體關(guān)系。
配件 — 一些商品可以劃分成為其他商品的配件。例如,一件便攜式無(wú)線電電子產(chǎn)品可能會(huì)把電池和外接揚(yáng)聲器當(dāng)成配件。與之類似,手套也可能被指定為帽子的配件。
元素 | 描述 |
父項(xiàng) SKU | 有多個(gè)變體的商品的主 SKU |
關(guān)系 | 子項(xiàng) SKU 和關(guān)系信息的類型分為以下部分: SKU — 用來(lái)識(shí)別一項(xiàng)單獨(dú)商品,即父項(xiàng) SKU 的一個(gè)(子項(xiàng))變體。 |
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>關(guān)系</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>
點(diǎn)擊咨詢現(xiàn)在有哪些新興平臺(tái)值得關(guān)注 >>>
特別聲明:以上文章內(nèi)容僅代表作者本人觀點(diǎn),不代表ESG跨境電商觀點(diǎn)或立場(chǎng)。如有關(guān)于作品內(nèi)容、版權(quán)或其它問(wèn)題請(qǐng)于作品發(fā)表后的30日內(nèi)與ESG跨境電商聯(lián)系。
二維碼加載中...
使用微信掃一掃登錄
使用賬號(hào)密碼登錄
平臺(tái)顧問(wèn)
微信掃一掃
馬上聯(lián)系在線顧問(wèn)
小程序
ESG跨境小程序
手機(jī)入駐更便捷
返回頂部