Это демо-аккаунт, раз в сутки все изменения откатываются.
Создать полноценный аккаунт
catalog.app
Основной каталог
Основной каталог
Onliner
Ozon
Wildberries
Catalog
Tasks
Prices
Miscellaneous
BYN
KZT
UAH
USD
EUR
RUB
U1
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)
{{-func condition(offer) if (offer.InStockAmount > 0) ret true end end-}} <?xml version="1.0" encoding="utf-8"?> <yml_catalog date="{{ date.now | date.add_hours 1 | 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>Catalog.app demo</company> <currencies> <currency id="{{model.Currency}}" /> </currencies> <delivery-options> <option cost="{{model.MaxDeliveryCost}}" days="{{model.MaxDeliveryTime}}" /> </delivery-options> <name>Техшоп</name> <url>https://techshop.ru/</url> <offers> {{- for offer in model.Offers}} {{- if condition offer -}} {{- if offer.Price*0.94 - offer.SupplierPrice > 50 || offer.DeliveryTime == 0 -}} <offer id="{{offer.OfferId}}" type="vendor.model" available="true"> <barcode>{{offer.BarCodes | array.join ", "}}</barcode> <categoryId>{{offer.CategoryId}}</categoryId> <currencyId>{{model.Currency}}</currencyId> <outlets> <outlet id="0" instock="{{offer.InStockAmount | math.format "f0"}}" /> </outlets> <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 expiry -}} {{parameter.Value}} {{- end -}} {{- end -}} {{- if parameter.Name == "Длина в упаковке" -}} {{- capture length -}} {{parameter.Value | string.to_float | math.format "f0"}} {{- end -}} {{- end -}} {{- if parameter.Name == "Ширина в упаковке" -}} {{- capture width -}} {{parameter.Value | string.to_float | math.format "f0"}} {{- end -}} {{- end -}} {{- if parameter.Name == "Высота в упаковке" -}} {{- capture height -}} {{parameter.Value | string.to_float | math.format "f0"}} {{- 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> <weight>{{weight}}</weight> <description>{{offer.Description}}</description> <price>{{offer.Price}}</price> <count>{{offer.InStockAmount | math.round}}</count> <typePrefix>{{offer.CategorySingularName}}</typePrefix> <url>https://techshop.ru/product/?XML_ID={{offer.ExternalId}}</url> <vendor>{{offer.Vendor}}</vendor> <vendorCode>{{offer.Article}}</vendorCode> <shop-sku>{{offer.OfferId}}</shop-sku> </offer> {{- end }} {{- end }} {{- end }} </offers> </shop> </yml_catalog>
Cancel
×
Testing template
Result