XML выгрузка под маркет (цены)

Вся эта ботва писалась в 2011 и уже устарела. Стоит переписать под

<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE yml_catalog SYSTEM "shops.dtd"> <yml_catalog date ="[*editedon:date=`%Y-%m-%d %H:%M`*]"> <shop> <name>Магазин конных пренадлежностей</name> <company>WesternHourse</company> <url>[(site_url)]</url> <currencies> <currency id="RUR" rate="1"/> </currencies> <categories> [!Ditto? &id=`category` &parents=`478` &depth=`0` &display=`all` &filter=`isfolder,1,1` &tpl=`yml-category-tpl`!] </categories> <offers> [!Ditto? &id=`yml` &parents=`478` &depth=`0` &display=`all` &tpl=`yml_tpl` &paginate=`0` &showPublishedOnly=`1` &phx=`1` &hidefolder=`1` &tags=`1` &filter=`price,1,3`!] </offers> </shop> </yml_catalog>

yml_tpl:

<offer id="[+id+]" type="vendor.model" available="true"> <url>[(site_url)]index.php?id=[+id+]</url> <price>[+price+]</price> <currencyId>RUR</currencyId> <categoryId type="Own">[+parent+]</categoryId> <picture>http://westernhorse.ru[+photos:mphoto+]</picture> <delivery>true</delivery> <local_delivery_cost>300</local_delivery_cost> <typePrefix>Аксессуары для лошадей</typePrefix> <vendor>WesternHorse</vendor> <model>[+pagetitle:notags+]</model> <description> [+content:notags+] </description> </offer>

yml-category-tpl:

<category id="[+id+]" [*phx:if=`[+parent+]`:isnot=`22`:then=`parentId="[+parent+]"`*]> [+pagetitle+] </category>
Яндекс.Метрика