index.hbs 4.24 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>{{{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}}
                <category>{{structuredCategory.categoryLv1}}@{{structuredCategory.categoryLv2}}@{{structuredCategory.categoryLv3}}</category>
                {{#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>