# Подарки

Для индивидуальной интеграции, данные подарков хранятся в XML в узле `shop_purchase_discount`, в шаблоне можно вывести следующим образом:

{% code lineNumbers="true" fullWidth="true" %}

```html
<xsl:template match="/shop">
    <!-- тут Ваш стандартный код корзины -->
    <xsl:if test="shop_purchase_discount/gift/shop_item">
        <xsl:apply-templates select="shop_purchase_discount/gift/shop_item" mode="gift"/>
    </xsl:if>
</xsl:template>

<xsl:template match="shop_item" mode="gift">
    <!-- товар подарок, цену не выводите -->
</xsl:template>
```

{% endcode %}

После оформления заказа, в списке товаров создается товар с названием по шаблону `"Подарок "%s""` (название можно поменять с помощью стандартной [интернационализацией](https://www.hostcms.ru/documentation/modules/additional/i18n/) HostCMS (Расширение языковых файлов для модулей), посмотреть все названия можно в файле */modules/shop/marketing/i18n/ru.php*) и ценой 0

{% hint style="success" %}
Демо пример можно посмотреть на [сайте](https://market.morozovpimnev.ru/bytovaya-texnika/krupnaya-texnika-dlya-kuxni/xolodilniki/), условие следующее при добавлении товара их категории **Холодильники** на сумму ⩾ 50 000 руб. в подарок идут **Электронные напольные весы**
{% endhint %}

<div data-full-width="true"><figure><img src="/files/D0TwAvA1ah8mwRMy3tb2" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.morozovpimnev.ru/marketing/usloviya/podarki.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
