themes/webapicTheme/templates/bundles/SyliusShopBundle/Cart/_widget.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. {% set total_quantity = 0 %}
  3. {% for key, item in cart.items %}
  4.                   
  5.     {% set total_quantity = total_quantity + item.quantity %}
  6.                 
  7. {% endfor %}
  8. <div class="sylius-cart-button-ctn">
  9.     <div id="sylius-cart-button" class="ui cart">
  10.         {{ sylius_template_event('sylius.shop.cart.widget.button', {'cart': cart}) }}
  11.         {% if total_quantity != 0 %}
  12.             <span>{{ total_quantity }}</span>
  13.         {% endif %}
  14.     </div>
  15. </div>
  16. {# <div class="ui large flowing cart hidden popup">
  17.     {{ sylius_template_event('sylius.shop.cart.widget.popup', {'cart': cart}) }}
  18. </div> #}