Это демо-аккаунт, раз в сутки все изменения откатываются.
Создать полноценный аккаунт
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.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>catalog.app Demo</name> <url>https://catalog.app/</url> <offers> {{- for offer in model.Offers}} {{- if offer | condition}} <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}}" /> </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 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> <weight>{{weight}}</weight> <description>{{offer.Description}}</description> <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