Created
August 20, 2014 14:32
-
-
Save SergeyMiracle/ac1de8593d62bfd4d09d to your computer and use it in GitHub Desktop.
Яндекс Маркет для MODx Evo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<offer id="[+id+]" available="true"> | |
<url>[(site_url)][~[+id+]~]</url> | |
<price>[+price+]</price> | |
<currencyId>RUR</currencyId> | |
<categoryId>[[UltimateParent? &id=`[+id+]` &topLevel=`2`]]</categoryId> | |
<picture>[(site_url)][+image+]</picture> | |
<delivery>true</delivery> | |
<name>[+pagetitle+]</name> | |
<vendor>[[DocInfo? &field=`pagetitle` &docid=`[[UltimateParent? &id=`[+id+]` &topLevel=`2`]]`]]</vendor> | |
<description> | |
[+introtext+] | |
</description> | |
</offer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>[(site_name)]</name> | |
<company>[(site_name)]</company> | |
<url>[(site_url)]</url> | |
<currencies> | |
<currency id="RUR" rate="1"/> | |
</currencies> | |
<categories> | |
[!Ditto? &id=`category` &parents=`0` &documents=`11,19` &where=`isfolder=1` &tpl=`yml_cat_tpl`!] | |
</categories> | |
<offers> | |
[!Ditto? &id=`yml` &parents=`11,19` &depth=`4` &tpl=`yml_tpl` &showPublishedOnly=`1` &hideFolders=`1`!] | |
</offers> | |
</shop> | |
</yml_catalog> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<category id="[+id+]"> [+pagetitle+] </category> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment