D
D
dgallyamshin2021-01-23 14:40:14
JavaScript
dgallyamshin, 2021-01-23 14:40:14

How to insert the number of user bonuses into the RetailCRM printable?

Hello, I have a printable form on RetailCrm. I would like to ask how to insert using twig the number of deducted bonuses for the order, the number of accrued bonuses for the order, the number of active and those that are waiting for activation?

<div class="bonus">
        <div class="sub-head">БАЛАНС ПО БОНУСНОЙ ПРОГРАММЕ</div>
        <div class="bonus__row">
           По текущему заказу списано: <b>{{ order.discount|price('', null, false) }}</b>
        </div>
        <div class="bonus__row">
            По текущему заказу начислено: <b>{{ order.discount|price('', null, false) }}</b>
        </div>
        <div class="bonus__row" style="margin-top: 20px;"><b>Остаток на бонусном счёте:</b></div>
        <div class="bonus__balance">
            <span style="margin-right: 20px;">
                <b>{{ order.discount|price('', null, false) }}</b> активных бонусов
            </span>
            <span>
                <b>{{ order.discount|price('', null, false) }}</b> ожидают активации
            </span>
        </div>
    </div>


Here is {{ order.discount|price('', null, false) }} - this refers to the price, but what function applies to bonuses?

600c0b05d3daf808243056.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question