templates/application/catalog/add-to-cart-block.html.twig line 1

Open in your IDE?
  1. <div class="item-product__control add-to-cart-block">
  2.     <div class="count product-block-count">
  3.         <button data-value="-1" class="count__minus" disabled aria-label="Уменьшить количество"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 8a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1z"/></svg></button>
  4.         <input type="text" class="count__control" value="1" aria-label="Указать количество">
  5.         <button data-value="1" class="count__plus" aria-label="Увеличить количество"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 8a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1z"/><path d="M8 1a1 1 0 0 1 1 1v12a1 1 0 1 1-2 0V2a1 1 0 0 1 1-1z"/></svg></button>
  6.     </div>
  7.     {% if cart.has(product.id) %}
  8.         <button class="btn add-to-cart-button btn--success">В корзине {{ cart.quantity(product.id) }}&nbsp;шт</button>
  9.     {% else %}
  10.         <button data-id="{{ product.id }}" class="btn add-to-cart-button">В корзину</button>
  11.     {% endif %}
  12. </div>