Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <yml_catalog date="{"" | date : "Y-m-d H:i:s"}">
- <shop>
- <name>Маркетплейс</name>
- <company>Интернет-магазин</company>
- <url>site.ru</url>
- <currencies>
- <currency id="RUB" rate="1"/>
- </currencies>
- <categories>
- {'!pdoResources' | snippet : [
- 'parents' => 0,
- 'level' => 10,
- 'limit' => 0,
- 'showHidden' => 1,
- 'where' => ['class_key' => 'msCategory'],
- 'sortby' => 'id',
- 'tpl' => '@INLINE <category id="{$id}" parentId="{$parent}">{$pagetitle}</category>'
- ]}
- </categories>
- <offers>
- {'!msProducts' | snippet : [
- 'parents' => 0,
- 'level' => 10,
- 'limit' => 0,
- 'tpl' => '@INLINE
- <offer id="{$id}" productId="{$id}" externalCode="[[!getExternalCode]]" available="true">
- <url>{$id | url : ["scheme" => "full"]}</url>
- <price>{$price | replace : " " : ""}</price>
- <categoryId>{$parent}</categoryId>
- {if $old_price > 0}<oldprice>{$old_price | replace : " " : ""}</oldprice>{/if}
- <currencyId>RUB</currencyId>
- <vendor>{$_pls["vendor.name"]}</vendor>
- <manufacturer_warranty>true</manufacturer_warranty>
- <picture>{"site_url" | config | replace : "ru/" : "ru"}{$image}</picture>
- <param name="Артикул" code="article">{$article}</param>
- <param name="Остаток" code="stock">{$stock}</param>
- <name>{$pagetitle}</name>
- </offer>
- '
- ]}
- </offers>
- </shop>
- </yml_catalog>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement