{**
* XS2:
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @version 1.XX
*}
<?xml version="1.0" encoding="windows-1251"?>
{xs2GetNodes mod="shop" NType="category" var="categories"}
{xs2GetNodes mod="shop" NType="item" var="items"}
<!DOCTYPE yml_catalog SYSTEM "{xs2Href mod="shop" met="ym_dtd"}">
<yml_catalog date="{$date}">
<shop>
<name>Название магазина</name>
<company>ООО "Мой магазин"</company>
<url>http://{$_THE.PRJ.Domain}{xs2Href mod="news" met="list"}</url>
<currencies>
<currency id="RUR" rate="1"/>
</currencies>
<categories>
{foreach from=$categories item="category"}
<category id="{$category.NodId}" parentId="{$category.ParId}">{$category.NName}</category>
{/foreach}
</categories>
<offers>
{foreach from=$items item="item"}
<offer id="{$item.NodId}" type="vendor.model" available="true">
<url>http://{$_THE.PRJ.Domain}{xs2Href mod="shop" obj="item" met="show" atr=$item.NodId}</url>
<price>{$item.Price}</price>
<currencyId>RUR</currencyId>
<categoryId>{$item.ParId}</categoryId>
{if $item.Photo}
<picture>{$item.Photo.path}</picture>
{/if}
<typePrefix></typePrefix>
<vendor>{$item.Producer.0.NName}</vendor>
<model>{$item.NName}</model>
<description>{$item.Description}</description>
</offer>
{/foreach}
</offers>
</shop>
</yml_catalog>
|
|