name: Hotline
type: xml
logo: hotline.png
description: 'Hotline.ua is a Ukrainian price comparison engine. This Internet service helps the buyer find, compare and decide on the choice of product, store, and buy.'
guide_link: https://hotline.ua/about/pricelists_specs_xml_action/
is_user_defined: 0
is_popular: 0
xml:
  schema: |
    <?xml version="1.0" encoding="utf-8"?>
    <price>
      <date>{{ context.time | dateFormat: "Y-m-d H:i" }}</date>
      <firmName>Назва магазину</firmName>
      <firmId>Унікальний ID (код) магазину</firmId>
      <categories>
      {% for category in context.categories %}
        <category>
          <id>{{ category.id }}</id>
          <name><![CDATA[{{ category.name }}]]></name>
          <parentId><![CDATA[{{ category.parent_category.id }}]]></parentId>
        </category>
      {% endfor %}
      </categories>
      <delivery id="1" type="address" carrier="slf" cost="60" freeFrom="1000" city="Київ" />
      <delivery id="2" type="warehouse" cost="35" carrier="UP" />
      <delivery id="3" type="warehouse" cost="null" carrier="NP" />
      <delivery id="4" type="pickup" cost="0" />
      <shipping workdays="16:00" sunday="14:00" saturday="18:00">0</shipping>
      <store id="1" name="Салон на Подолі" address="Київ, вул. Хорива, 10" coordinates="50.46629756808269,30.515580557670187" workdays_from="9:00" workdays_to="21:00" sat_from="10:00" sat_to="18:00" sun_from="10:00" sun_to="18:00" tel="+380931234567"></store>
      <store id="2" name="Смарт-Плаза" address="Київ, пр. Перемоги, 24" coordinates="50.45145794465848,30.46873581153247" workdays_from="10:00" workdays_to="20:00" sat_from="11:00" sat_to="18:00" sun_from="11:00" sun_to="18:00" tel="+380931234567"></store>
      <items>
      {% for product in context.products %}
        <item>
          <id>{{ product.entity_id }}</id>
          <categoryId>{{ product.category.id }}</categoryId>
          <code><![CDATA[{{ product.sku }}]]></code>
          <barcode><![CDATA[{{ product.sku }}]]></barcode>
          <vendor><![CDATA[{{ product.manufacturer }}]]></vendor>
          <name><![CDATA[{{ product.name }}]]></name>
          <description><![CDATA[{{ product.description | stripHtml | plain }}]]></description>
          <url><![CDATA[{{ product.url }}]]></url>
          <image><![CDATA[{{ product.image }}]]></image>
          <priceRUAH>{{ product.final_price | price }}</priceRUAH>
          {% if product.qty > 0 %}
          <stock>В наявності</stock>
          {% else %}
          <stock>Немає</stock>
          {% endif %}
          <guarantee unit="days" type="shop">7</guarantee>
          <region>Київ</region>
          <shipping>1</shipping>
          <delivery id="1" cost="70" freeFrom="5000" />
          <param name="Країна виготовлення">{{ product.country_of_manufacture }}</param>
          <param name="Вага">{{ product.weight }}</param>
          <payment type="cash-on-delivery" fee="2">true</payment>
          <condition>0</condition>
          <custom>1</custom>
        </item>
      {% endfor %}
      </items>
    </price>
