Это демо-аккаунт, раз в сутки все изменения откатываются.
Создать полноценный аккаунт
catalog.app
Основной каталог
Wildberries
Ozon
Основной каталог
Onliner
Каталог
Аналитика
Задачи
Цены
Разное
KZT
UAH
EUR
USD
RUB
BYN
U4
RU
EN
Счет
0,00 BYN
Общие настройки
Общая библиотека
Приватная библиотека
Профиль
Помощь
Dom.by (фид)
Справка
Общие
Настройки шаблона
Данные о профиле экспорта
Способ обработки свойств
Загружать значения только обязательных свойств
Не загружать значения свойств
Загружать значения всех свойств
Тип файла
Txt
Xml
Json
Csv
Ссылка на фид
Шаблон
Тест
Шаблоны
Yandex
Google
InMyRoom
Yandex (пример с условиями)
Google (пример с условиями)
{{-func condition(offer) if (offer.Pictures | array.size == 0) ret false end if (offer.Parameters | array.size < 3) ret false end # выбираем товары из выделенных категорий - угловые диваны, прямые диваны, П-образные диваны, Модульные диваны, Кушетки, Софы, Тахты, телевизоры, мобильные телефоны, спортивные комплексы, велотренажеры, беговые дорожки, степперы, турники, надувные бассейны, каркасные бассейны, садовые качели, подвесные кресла, гамаки, садовые диваны, садовые столы, садовые стулья, садовые кресла, комплекты садовой мебели, офисные кресла, кухонные стулья, столы обеденные, письменные столы if (offer.CategoryId == 5105 || offer.CategoryId == 5106 || offer.CategoryId == 5110 || offer.CategoryId == 5107 || offer.CategoryId == 5108 || offer.CategoryId == 5109 || offer.CategoryId == 5976 || offer.CategoryId == 3352 || offer.CategoryId == 552 || offer.CategoryId == 43 || offer.CategoryId == 500 || offer.CategoryId == 463 || offer.CategoryId == 157 || offer.CategoryId == 555 || offer.CategoryId == 867 || offer.CategoryId == 2312 || offer.CategoryId == 5006 || offer.CategoryId == 103 || offer.CategoryId == 3765 || offer.CategoryId == 422 || offer.CategoryId == 6129 || offer.CategoryId == 6127 || offer.CategoryId == 6126 || offer.CategoryId == 6125 || offer.CategoryId == 3521 || offer.CategoryId == 315 || offer.CategoryId == 499 || offer.CategoryId == 3767 || offer.CategoryId == 437) ret true else ret false end ret false end-}} <?xml version="1.0" encoding="utf-8"?> <yml_catalog date="{{ date.now | date.to_string '%F %R' }}"> <shop> <company>Catalog.app Demo</company> <currencies> <currency id="{{model.Currency}}" rate="1" /> </currencies> <name>iMarket.by</name> <url>https://imarket.by/</url> <categories> {{- for category in model.Categories}} <category id="{{category.Id}}" {{ if category.ParentId != empty -}}parentId="{{category.ParentId}}"{{ end -}}>{{category.Name}}</category> {{- end }} </categories> <offers> {{- for offer in model.Offers}} {{- if condition offer -}} <offer id="{{offer.OfferId}}" type="vendor.model" available="true"> {{- for code in offer.BarCodes}} {{- if (code | !string.starts_with "2") || (code | !string.starts_with "160000203") || (code | !string.starts_with "5500000") -}} {{- capture barCode -}} {{code}} {{- end -}} {{- end -}} {{- end }} <categoryId>{{offer.CategoryId}}</categoryId> <currencyId>{{model.Currency}}</currencyId> <model>{{offer.Model}} {{offer.Color}}</model> {{- for parameter in offer.Parameters}} <param name="{{parameter.Name}}" {{ if parameter.Unit!= empty -}}unit="{{parameter.Unit}}"{{ end -}}>{{parameter.Value}}</param> {{- if parameter.Name == "Страна-производитель" -}} {{- capture country_of_origin -}} {{parameter.Value}} {{- end -}} {{- end -}} {{- if parameter.Name == "Производитель (страна, завод)" -}} {{- capture manufacturer -}} {{parameter.Value}} {{- end -}} {{- end -}} {{- if parameter.Name == "Длина в упаковке" -}} {{- capture length -}} {{parameter.Value}} {{- end -}} {{- end -}} {{- if parameter.Name == "Ширина в упаковке" -}} {{- capture width -}} {{parameter.Value}} {{- end -}} {{- end -}} {{- if parameter.Name == "Высота в упаковке" -}} {{- capture height -}} {{parameter.Value}} {{- end -}} {{- end -}} {{- if parameter.Name == "Вес" -}} {{- capture weight -}} {{parameter.Value}} {{- end -}} {{- end -}} {{- end -}} {{- for picture in offer.Pictures}} <picture>{{picture}}</picture> {{- end }} <country_of_origin>{{country_of_origin}}</country_of_origin> <weight>{{weight}}</weight> <price>{{offer.Price}}</price> <oldprice>{{offer.OriginalPrice}}</oldprice> <typePrefix>{{offer.CategorySingularName}}</typePrefix> <url>https://imarket.by/product/?XML_ID={{offer.ExternalId}}&utm_source=dom.by&utm_medium=cpc&utm_campaign=yml</url> <vendor>{{offer.Vendor}}</vendor> <vendorCode>{{offer.Article}}</vendorCode> <quantity>{{offer.InStockAmount | math.format "f0"}}</quantity> <delivery-options> <option days="{{offer.DeliveryTime}}"/> </delivery-options> <shop-sku>{{offer.OfferId}}</shop-sku> </offer> {{- end }} {{- end }} </offers> </shop> </yml_catalog>
Отмена
×
Тестирование шаблона
Результаты