Advertisement
Guest User

Untitled

a guest
Nov 24th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.95 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <yml_catalog date="{"" | date : "Y-m-d H:i:s"}">
  3.     <shop>
  4.         <name>Маркетплейс</name>
  5.         <company>Интернет-магазин</company>
  6.         <url>site.ru</url>
  7.         <currencies>
  8.             <currency id="RUB" rate="1"/>
  9.         </currencies>
  10.         <categories>
  11.             {'!pdoResources' | snippet : [
  12.                 'parents' => 0,
  13.                 'level' => 10,
  14.                 'limit' => 0,
  15.                 'showHidden' => 1,
  16.                 'where' => ['class_key' => 'msCategory'],
  17.                 'sortby' => 'id',
  18.                 'tpl' => '@INLINE <category id="{$id}" parentId="{$parent}">{$pagetitle}</category>'
  19.             ]}
  20.         </categories>
  21.         <offers>
  22.             {'!msProducts' | snippet : [
  23.                 'parents' => 0,
  24.                 'level' => 10,
  25.                 'limit' => 0,
  26.                 'tpl' => '@INLINE
  27.                     <offer id="{$id}" productId="{$id}" externalCode="[[!getExternalCode]]" available="true">
  28.                         <url>{$id | url : ["scheme" => "full"]}</url>
  29.                         <price>{$price | replace : " " : ""}</price>
  30.                         <categoryId>{$parent}</categoryId>
  31.                         {if $old_price > 0}<oldprice>{$old_price  | replace : " " : ""}</oldprice>{/if}
  32.                         <currencyId>RUB</currencyId>
  33.                         <vendor>{$_pls["vendor.name"]}</vendor>
  34.                         <manufacturer_warranty>true</manufacturer_warranty>
  35.                         <picture>{"site_url" | config | replace : "ru/" : "ru"}{$image}</picture>
  36.                         <param name="Артикул" code="article">{$article}</param>
  37.                         <param name="Остаток" code="stock">{$stock}</param>
  38.                         <name>{$pagetitle}</name>
  39.                     </offer>
  40.                 '
  41.             ]}
  42.         </offers>
  43.     </shop>
  44. </yml_catalog>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement