<div class="product-card__buttons {% if countInCart %}justify-left{% endif %}" id="js-product-buttons">
{% if countInCart %}
<a href="{{ path('cart') }}" class="product-card__to-cart product-item__in-cart-btn" style="height: 52px;">
В корзине<span>Перейти</span>
</a>
<div class="product-card__buttons-counter" id="js-small-counter">
<a href="{{ path('decrease_product',{'id':product.id}) }}" class="js-product-count-change">-</a>
<div class="product-card__buttons-counter-digit"
id="js-product-count-digit">{{ countInCart }}</div>
<a href="{{ path('increase_product',{'id':product.id}) }}"
class="js-product-count-change {% if product.totalBalance <= countInCart %}disabled{% endif %}">+</a>
</div>
{% else %}
<button class="product-card__to-cart js-to-cart" style="height: 52px;"
data-url="{{ path('add_to_cart',{'id':product.id}) }}" data-id="{{ product.id }}" data-price="{{ product.price }}">
Добавить в корзину
</button>
<button class="product-card__one-click-btn" id="js-one-click">
Купить в 1 клик
</button>
{% endif %}
</div>