Это демо-аккаунт, раз в сутки все изменения откатываются.
Создать полноценный аккаунт
catalog.app
Основной каталог
Основной каталог
Onliner
Ozon
Wildberries
Catalog
Tasks
Prices
Miscellaneous
BYN
KZT
UAH
USD
EUR
RUB
U9
RU
EN
Account
0.00 BYN
Common settings
Common library
Private library
Profile
Help
Алиэкспресс экспорт
Help
General
Template settings
Export profile data
Properties processing method
Load only required property values
Don't load property values
Load all property values
SpecificPropertiesList
File type
Txt
Xml
Json
Csv
Feed link
Template
Test
Templates
Yandex
Google
InMyRoom
Yandex (example with conditions)
Google (example with conditions)
<?xml version="1.0" encoding="utf-8"?> <yml_catalog date="{{ date.now | date.to_string '%F %R' }}"> <shop> <categories> {{- for category in model.Categories}} <category id="{{category.Id}}" {{ if category.ParentId != empty -}}parentId="{{category.ParentId}}"{{ end -}}>{{category.Name}}</category> {{- end }} </categories> <company>Формула Уюта</company> <currencies> <currency id="{{model.Currency}}" /> </currencies> <delivery-options> <option cost="{{model.MaxDeliveryCost}}" days="{{model.MaxDeliveryTime}}" /> </delivery-options> <name>Формула Уюта</name> <url>https://imarket.by/</url> <offers> {{- for offer in model.Offers}} <offer id="{{offer.OfferId}}" type="vendor.model" available="true"> <barcode>{{offer.BarCodes | array.join ", "}}</barcode> <categoryId>{{offer.CategoryId}}</categoryId> <currencyId>{{model.Currency}}</currencyId> <model>{{offer.Model}} {{offer.Color}}</model> <name>{{offer.CategorySingularName}} {{offer.Vendor}} {{offer.Model}} {{offer.Color}} {{offer.Article}}</name> {{- 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> <manufacturer>{{manufacturer}}</manufacturer> <dimensions>{{length}}/{{width}}/{{height}}</dimensions> <length>{{length}}</length> <width>{{width}}</width> <height>{{height}}</height> <weight>{{weight}}</weight> <description>{{offer.Description}}</description> <price>{{offer.Price}}</price> <typePrefix>{{offer.CategorySingularName}}</typePrefix> <url>https://imarket.by/product/?XML_ID={{offer.ExternalId}}</url> <vendor>{{offer.Vendor}}</vendor> <vendorCode>{{offer.Article}}</vendorCode> <quantity>{{offer.InStockAmount}}</quantity> <shop-sku>{{offer.OfferId}}</shop-sku> </offer> {{- end }} </offers> </shop> </yml_catalog>
Cancel
×
Testing template
Result