templates/front/cart/block-item.html.twig line 1

Open in your IDE?
  1. <li class="block-cart-item cartitem-{{ item.id }} product product-{{ item.product.id }} cf">
  2. <span class="img">
  3. <a href="{{ path('product',{id:item.product.id,url:item.product.url}) }}">
  4. {% if item.product.picture %}
  5. <img src="{{ asset(item.product.picture.webPath) | imagine_filter('product_small') }}" alt="{{ item.product.name }}">
  6. {% else %}
  7. <img src="{{ asset('img/img-default.png') | imagine_filter('product_medium') }}" alt="{{ item.product.name }}">
  8. {% endif %}
  9. </a>
  10. </span>
  11. <span class="infos">
  12. <a href="{{ path('product',{id:item.product.id,url:item.product.url}) }}" class="title">
  13. {{ item.product.name|length > 40 ? item.product.name|slice(0, 100) ~ '...' : item.product.name }}
  14. </a>
  15. <span class="reference">{{ item.product.reference }} x {{ item.quantity }}</span>
  16. <span class="price line-price">{{ (item.price)|price }}</span>
  17. </span>
  18. </li>