index.hbs 4.68 KB
<?xml version="1.0" encoding="utf-8" ?>
<urlset content_method="full">
{{# products}}
    <url>
        <loc>{{loc}}</loc>
        <lastmod>{{lastmod}}</lastmod>
        <changefreq>{{changefreq}}</changefreq>
        <priority>{{priority}}</priority>
        <data>
            <display>
                <fromSrc>{{fromSrc}}</fromSrc>
                {{#images}}
                    <image>
                        <contentUrl><![CDATA[{{{contentUrl}}}]]></contentUrl>
                        <height>{{height}}</height>
                        <width>{{width}}</width>
                        <description>{{description}}</description>
                        {{#if tag}}<tag>{{tag}}</tag>{{/if}}
                        <name>{{name}}</name>
                    </image>
                {{/images}}
                <name>{{name}}</name>
                <brand>{{brand}}</brand>
                {{#offers}}
                <offers>
                    <priceSpecification>
                        <price>{{price}}</price>
                        <validIn>
                            <administrativeAreaLv2>{{administrativeAreaLv2}}</administrativeAreaLv2>
                        </validIn>
                    </priceSpecification>
                    <wapUrl>{{wapUrl}}</wapUrl>
                    <url>{{url}}</url>
                    <eligibleTransactionVolume>{{eligibleTransactionVolume}}</eligibleTransactionVolume>
                    <seller>
                        <name>{{seller_name}}</name>
                    </seller>
                    {{#if ratingValue}}
                        <aggregateRating>
                            <ratingValue>{{ratingValue}}</ratingValue>
                            <favorableRating>{{favorableRating}}</favorableRating>
                        </aggregateRating>
                    {{/if}}
                    {{#if onShelfTime}}<onShelfTime>{{onShelfTime}}</onShelfTime>{{/if}}
                    {{#if offShelfTime}}<offShelfTime>{{offShelfTime}}</offShelfTime>{{/if}}
                    <type>{{type}}</type>
                    <isOverseas>{{isOverseas}}</isOverseas>
                    {{#if discount}}<discount>{{discount}}</discount>{{/if}}
                    <isFreightFree>{{isFreightFree}}</isFreightFree>
                    {{#if commentCount}}<commentCount>{{commentCount}}</commentCount>{{/if}}
                    <deliveryPlace>
                        <administrativeAreaLv1>{{deliveryPlace.administrativeAreaLv1}}</administrativeAreaLv1>
                    </deliveryPlace>
                    <stockSpecification>
                        <region>
                            <AdministrativeAreaLv2>{{stockSpecification.AdministrativeAreaLv2}}</AdministrativeAreaLv2>
                        </region>
                        <volume>{{stockSpecification.volume}}</volume>
                        <status>{{stockSpecification.status}}</status>
                    </stockSpecification>
                    <shelfSpecification>
                        <region>
                            <AdministrativeAreaLv2>{{shelfSpecification.AdministrativeAreaLv2}}</AdministrativeAreaLv2>
                        </region>
                        <status>{{shelfSpecification.status}}</status>
                    </shelfSpecification>
                    <purchaseMethod>{{purchaseMethod}}</purchaseMethod>
                    {{#coupon}}
                        <coupon>
                            <url>{{url}}</url>
                            <name>{{name}}</name>
                        </coupon>
                    {{/coupon}}
                </offers>
                {{/offers}}
                <structuredCategory>
                    {{#if structuredCategory.categoryLv1}}<categoryLv1>{{structuredCategory.categoryLv1}}</categoryLv1>{{/if}}
                    {{#if structuredCategory.categoryLv2}}<categoryLv2>{{structuredCategory.categoryLv2}}</categoryLv2>{{/if}}
                    {{#if structuredCategory.categoryLv3}}<categoryLv3>{{structuredCategory.categoryLv3}}</categoryLv3>{{/if}}
                    {{#if structuredCategory.categoryLv4}}<categoryLv4>{{structuredCategory.categoryLv4}}</categoryLv4>{{/if}}
                </structuredCategory>
                {{#if exifData.name}}
                    <exifData>
                        <name>{{exifData.name}}</name>
                        <value>{{exifData.value}}</value>
                        <propertyID>{{exifData.propertyID}}</propertyID>
                        <unitText>{{exifData.unitText}}</unitText>
                        <unitCode>{{exifData.unitCode}}</unitCode>
                    </exifData>
                {{/if}}
                <id>{{id}}</id>
            </display>
        </data>
    </url>
{{/products}}
</urlset>