index.hbs 4.21 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>
                    <aggregateRating>
                        <ratingValue>{{ratingValue}}</ratingValue>
                        <favorableRating>{{favorableRating}}</favorableRating>
                    </aggregateRating>
                    <onShelfTime>{{onShelfTime}}</onShelfTime>
                    <offShelfTime>{{offShelfTime}}</offShelfTime>
                    <type>{{type}}</type>
                    <isOverseas>{{isOverseas}}</isOverseas>
                    <discount>{{discount}}</discount>
                    <isFreightFree>{{isFreightFree}}</isFreightFree>
                    <commentCount>{{commentCount}}</commentCount>
                    <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>
                    <categoryLv1>{{structuredCategory.categoryLv1}}</categoryLv1>
                    <categoryLv2>{{structuredCategory.categoryLv2}}</categoryLv2>
                    <categoryLv3>{{structuredCategory.categoryLv3}}</categoryLv3>
                    <categoryLv4>{{structuredCategory.categoryLv4}}</categoryLv4>
                </structuredCategory>
                <exifData>
                    <name>{{exifData.name}}</name>
                    <value>{{exifData.value}}</value>
                    <propertyID>{{exifData.propertyID}}</propertyID>
                    <unitText>{{exifData.unitText}}</unitText>
                    <unitCode>{{exifData.unitCode}}</unitCode>
                </exifData>
                <id>{{id}}</id>
            </display>
        </data>
    </url>
{{/products}}
</urlset>