4

我想使用可配置和简单的产品关系为谷歌购物创建提要。任何人都对如何创建可配置和简单的产品关系提要有任何想法/示例 xml 文件。

4

1 回答 1

4

我在做了一些研发之后自己弄清楚了。基本上我们需要对所有简单产品使用项目组 ID,并且它应该有父产品的 sku,以便谷歌购物知道这些产品是变体而不是彼此的重复副本。

命名您的变体产品时,请确保包含所有变体项目的通用标题

请查看下面的示例,以便它也可以帮助其他人。

<?xml version='1.0'?>
<rss version ='2.0' xmlns:g='http://base.google.com/ns/1.0'>
<channel>
<title><![CDATA[Website Title]]></title>
<description><![CDATA[Website Desctiption.]]></description>
<link>http://www.domain.com/</link>

    <item>
    <g:id>2450</g:id>
    <title><![CDATA[Product Title]]></title>
    <link>http://www.domain.com/product_url/</link>
    <g:price>70.00 USD</g:price>
    <g:sale_price>49.00 USD</g:sale_price>
    <description><![CDATA[Product Description.]]></description>
    <g:condition>new</g:condition>
    <g:expiration_date>2013-11-20</g:expiration_date>
    <g:image_link>http://www.domain.com/product_image_name.png</g:image_link>
    <g:brand><![CDATA[Product Brand]]></g:brand>
    <g:mpn><![CDATA[Product SKU]]></g:mpn>
    <g:product_type><![CDATA[Shoes]]></g:product_type>
    <g:google_product_category><![CDATA[Apparel & Accessories > Shoes]]></g:google_product_category>
    <g:availability>in stock</g:availability>
    <g:size>6</g:size>
    <g:gender>Female</g:gender>
    <g:age_group>Adult</g:age_group>
    <g:color>BLUE</g:color>
    <g:item_group_id>Configurable Products Sku</g:item_group_id>
    </item>

    <item>
    <g:id>2450</g:id>
    <title><![CDATA[Product Title]]></title>
    <link>http://www.domain.com/product_url/</link>
    <g:price>70.00 USD</g:price>
    <g:sale_price>49.00 USD</g:sale_price>
    <description><![CDATA[Product Description.]]></description>
    <g:condition>new</g:condition>
    <g:expiration_date>2013-11-20</g:expiration_date>
    <g:image_link>http://www.domain.com/product_image_name.png</g:image_link>
    <g:brand><![CDATA[Product Brand]]></g:brand>
    <g:mpn><![CDATA[Product SKU]]></g:mpn>
    <g:product_type><![CDATA[Shoes]]></g:product_type>
    <g:google_product_category><![CDATA[Apparel & Accessories > Shoes]]></g:google_product_category>
    <g:availability>in stock</g:availability>
    <g:size>7</g:size>
    <g:gender>Female</g:gender>
    <g:age_group>Adult</g:age_group>
    <g:color>BLUE</g:color>
    <g:item_group_id>Configurable Products Sku</g:item_group_id>
    </item>
</channel>
</rss>  
于 2013-11-13T06:06:06.407 回答