{
productList:[
product:{
productId:"产品ID",
title;"产品标题",
...
variants:[
variant:{
feedId:"变体GID",
...
}
],
firstVariant:{
feedId:"",
...
}
images:[
image:{
src:"图片路径",
alt:"ALT文字",
width:"宽度",
height:"高度"
}
],
featuredImage;{
src:"图片路径",
alt:"ALT文字",
width:"宽度",
height:"高度"
}
...
}
],
storeConfig:{
id:"店铺ID",
number:"店铺序号",
symbol:"唯一标识",
currency:"货币类型",
currencyRate:"货币小数位",
locales:"语言环境"
},
domain:{
host:"域名"
}
}
<#if productList?? && (productList?size > 0) >
<#list productList as product>
<item>
<productId>${product.productId!''}</productId>
</item>
</#list>
</#if>
<#if productList?? && (productList?size > 0) >
<#list productList as product>
<#if product.variants?? && (product.variants?size > 0) >
<#list product.variants as variant>
<item>
<variantId>${variant.variantId!''} </variantId>
</item>
</#list>
</#if>
</#list>
</#if>
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
<channel>
<title> </title>
<description> </description>
<link> </link>
<#if productList?? && (productList?size > 0) >
<#list productList as product>
<item>
<g:id>${product.feedId!''}</g:id>
<g:title> ${product.title?replace("&","&")}</g:title>
<g:description>${(product.description?replace("&","&"))!''}</g:description>
<g:mpn>${product.mpn!''}</g:mpn>
<g:link>https://soufeel.com/products/${product.link!''}</g:link>
<g:mobile_link>https://soufeel.com/products/${product.link!''}</g:mobile_link>
<g:image_link>${product.imageLink!''}</g:image_link>
<g:condition>new</g:condition>
<g:availability>in stock</g:availability>
<g:price>${product.price!''} ${storeConfig.currency!''}</g:price>
<g:brand>Soufeel</g:brand>
<g:google_product_category>${product.googleProductCategory!''}</g:google_product_category>
<g:product_type><#if product.googleProductType?? >${product.googleProductType?replace("&","&")!' '}</#if></g:product_type>
<g:gender>${product.gender!' '}</g:gender>
<g:color>Multicolor</g:color>
<g:size>${product.size!' '}</g:size>
<g:age_group>adult</g:age_group>
<g:custom_label_0>${product.custom_label_0!' '}</g:custom_label_0>
<g:custom_label_4>${product.custom_label_4!' '}</g:custom_label_4>
<g:shipping>
<g:country>us</g:country>
</g:shipping>
<g:content_id>${product.productId!''}</g:content_id>
</item>
</#list>
</#if>
</channel>
</rss>
<?xml version="1.0"?>
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
<channel>
<title></title>
<link></link>
<description></description>
<#if productList?? && (productList?size > 0) >
<#list productList as product>
<#if product.variants?? && (product.variants?size > 0) >
<#list product.variants as variant>
<item>
<g:id><#if variant.feedId?? >${variant.feedId}<#else>${product.productId}_${variant.variantId}_${variant.sku!''}</#if></g:id>
<g:title>${(product.title?replace('&','&'))!''}</g:title>
<g:condition>${variant.condition!''}</g:condition>
<g:description>${(product.description?replace('&','&'))!''}</g:description>
<g:mpn>${variant.mpn!''}</g:mpn>
<g:link>https://${domain.host!''}/products/${product.handle!''}?variant=${variant.variantId!''}</g:link>
<g:mobile_link>https://${domain.host!''}/products/${product.handle!''}?variant=${variant.variantId!''}</g:mobile_link>
<g:image_link>${product.imageLink!''}</g:image_link>
<g:condition>${variant.condition!''}</g:condition>
<g:availability>${variant.availability!''}</g:availability>
<g:price><#if product.firstVariant?? >${product.firstVariant.sellingPrice!''}</#if> ${storeConfig.currency!''}</g:price>
<g:brand>${variant.brand!''}</g:brand>
<g:google_product_category>${variant.googleProductCategory!''}</g:google_product_category>
<g:product_type>${(variant.googleProductType?replace('&','&'))!''}</g:product_type>
<g:gender>${variant.gender!''}</g:gender>
<g:color>${variant.color!''}</g:color>
<g:age_group>${variant.ageGroup!''}</g:age_group>
<g:custom_label_0>${(variant.customLabel0?replace('&','&'))!''}</g:custom_label_0>
<g:custom_label_4>${(variant.customLabel4?replace('&','&'))!''}</g:custom_label_4>
<g:shipping>
<g:country>us</g:country>
</g:shipping>
<g:content_id>${product.productId!''}</g:content_id>
</item>
</#list>
</#if>
</#list>
</#if>
</channel>
</rss>
<?xml version="1.0"?>
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
<channel>
<title></title>
<link></link>
<description></description>
{% for product in productList %}
{% for variant in product.variants %}
<item>
<g:id>{% if variant.feedId != null and variant.feedId != '' %}{{variant.feedId}}{% else %}{{product.productId}}_{{variant.variantId}}_{{variant.sku}}{% endif %}</g:id>
<g:title>{{product.title | replace:'&','&'}}</g:title>
<g:condition>{{variant.condition}}</g:condition>
<g:description>{{product.description | replace:'&','&'}}</g:description>
<g:mpn>{{variant.mpn}}</g:mpn>
<g:link>https://{{domain.host}}/products/{{product.handle}}?variant={{variant.variantId}}</g:link>
<g:mobile_link>https://{{domain.host}}/products/{{product.handle}}?variant={{variant.variantId}}</g:mobile_link>
<g:image_link>{{product.imageLink}}</g:image_link>
<g:condition>{{variant.condition}}</g:condition>
<g:availability>{{variant.availability}}</g:availability>
<g:price>{{product.firstVariant.sellingPrice}} {{storeConfig.currency}}</g:price>
<g:brand>{{variant.brand}}</g:brand>
<g:google_product_category>{{variant.googleProductCategory}}</g:google_product_category>
<g:product_type>{{variant.googleProductType | replace:'&','&'}}</g:product_type>
<g:gender>{{variant.gender}}</g:gender>
<g:age_group>{{variant.ageGroup}}</g:age_group>
<g:custom_label_0>{{variant.customLabel0 | replace: '&','&'}}</g:custom_label_0>
<g:custom_label_4>{{variant.customLabel4 | replace: '&','&'}}</g:custom_label_4>
<g:shipping>
<g:country>us</g:country>
</g:shipping>
<g:content_id>{{product.productId}}</g:content_id>
</item>
{% endfor %}
{% endfor %}
</channel>
</rss>
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
<channel>
<title> </title>
<description> </description>
<link> </link>
<#if productList?? && (productList?size > 0) >
<#list productList as product>
<item>
<g:id>${product.productId}-${product.firstVariant.sku}</g:id>
<g:sku>${product.firstVariant.sku}</g:sku>
<g:product_id>${product.productId}</g:product_id>
<g:product_handle>${product.link!' '}</g:product_handle>
<g:title>${product.title?replace("&","&")}</g:title>
<g:type><#if product.productType?? >${product.productType?replace("&","&")}</#if></g:type>
<g:collection_id>${product.collectionIds!''}</g:collection_id>
<g:condition>new</g:condition>
<g:identifier_exists>no</g:identifier_exists>
<g:description><#if product.description?? >${product.description?replace("&","&")}</#if></g:description>
<g:link>https://soufeel.com/products/${product.link!''}</g:link>
<g:mobile_link>https://soufeel.com/products/${product.link!''}</g:mobile_link>
<g:image_link>${product.imageLink!''}</g:image_link>
<g:image_thumbnail>${product.imageLink!''}</g:image_thumbnail>
<g:condition>new</g:condition>
<g:availability>in stock</g:availability>
<g:sale_price>${product.firstVariant.originalPrice} ${storeConfig.currency!''}</g:sale_price>
<g:price>${product.firstVariant.sellingPrice} ${storeConfig.currency!''}</g:price>
<g:brand>Soufeel</g:brand>
<g:google_product_category>${product.googleProductCategory!' '}</g:google_product_category>
<g:product_type><#if product.googleProductType?? >${product.googleProductType?replace("&","&")}</#if></g:product_type>
<g:gender>${product.gender!' '}</g:gender>
<g:color>${product.color!' '}</g:color>
<g:age_group>adult</g:age_group>
<g:new>1</g:new>
<g:onSale>1</g:onSale>
<g:packing><#if product.tags?? && product.tags?contains('CART_GIVEAWAY')>1<#else>0</#if></g:packing>
<g:custom_label_0>${product.custom_label_0!' '}</g:custom_label_0>
<g:shipping>
<g:country>us</g:country>
</g:shipping>
</item>
</#list>
</#if>
</channel>
</rss>
<?xml version="1.0" encoding="UTF-8"?>
<products>
<#if productList?? && (productList?size > 0) >
<#list productList as product>
<#if product.tags?? && product.tags?contains('hide-product')>
<#else>
<product>
<ID>${product.productId!''}</ID>
<masterID> </masterID>
<categoryTree> </categoryTree>
<name>${product.title?replace("&","&")}</name>
<sku><#assign index = 0><#if product.variants?exists><#list product.variants as var><#if index != 0>|</#if>${var.sku?trim}<#assign index = index+1></#list></#if></sku>
<LargeImageUrl>${product.imageLink!''}</LargeImageUrl>
<ThumbnailImageUrl>${product.imageLink!''}</ThumbnailImageUrl>
<URL>${product.link!''}</URL>
<salePrice><#assign index = 0><#if product.variants?exists><#list product.variants as var><#if index != 0>|</#if>${var.sellingPrice?trim}<#assign index = index+1></#list></#if></salePrice>
<retailPrice><#assign index = 0><#if product.variants?exists><#list product.variants as var><#if index != 0>|</#if>${var.originalPrice?trim}<#assign index = index+1></#list></#if></retailPrice>
<salePriceCurrency><#assign index = 0><#if product.variants?exists><#list product.variants as var><#if index != 0>|</#if>$${var.sellingPrice?trim}<#assign index = index+1></#list></#if></salePriceCurrency>
<retailPriceCurrency><#assign index = 0><#if product.variants?exists><#list product.variants as var><#if index != 0>|</#if>$${var.originalPrice?trim}<#assign index = index+1></#list></#if></retailPriceCurrency>
<availability>instock</availability>
<gender> </gender>
<brand>SOUFEEL</brand>
<connectedProducts> </connectedProducts>
<new>1</new>
<onSale>1</onSale>
<recentPriceDrop> </recentPriceDrop>
<bestSelling>0</bestSelling>
<color>${product.color!' '}</color>
<material> </material>
<sale>${product.saleNum!0}</sale>
<packing>0</packing>
</product>
</#if>
</#list>
</#if>
</products>