Это демо-аккаунт, раз в сутки все изменения откатываются.
Создать полноценный аккаунт
catalog.app
Основной каталог
Основной каталог
Onliner
Ozon
Wildberries
Catalog
Tasks
Prices
Miscellaneous
BYN
KZT
UAH
USD
EUR
RUB
U2
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.to_string '%F %R' }}"> <shop> <company>Catalog.app Demo</company> <currencies> <currency id="{{model.Currency}}" rate="1" /> </currencies> <name>Все товары ЦО</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 }} <barcode>{{barCode}}</barcode> <categoryId>{{offer.CategoryId}}</categoryId> <currencyId>{{model.Currency}}</currencyId> <quantity>{{offer.InStockAmount | math.format "f0"}}</quantity> <delivery-options> <option cost="{{model.MaxDeliveryCost}}" days="{{offer.DeliveryTime}}" /> </delivery-options> <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> <weight>{{weight}}</weight> <price>{{offer.Price}}</price> <oldprice>{{offer.OriginalPrice}}</oldprice> <typePrefix>{{offer.CategorySingularName}}</typePrefix> <url>https://imarket.by/product/?XML_ID={{offer.ExternalId}}</url> <vendor>{{offer.Vendor}}</vendor> <vendorCode>{{offer.Article}}</vendorCode> <shop-sku>{{offer.OfferId}}</shop-sku> </offer> {{- end }} {{- end }} </offers> </shop> </yml_catalog>
Cancel
×
Testing template
Result