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

Open in your IDE?
  1. <tr class="cartitem cartitem-{{ item.product.id }}" data-id="{{ item.product.id }}">
  2. <td class="infos-ctn">
  3. <div class="item-infos">
  4. <div class="img">
  5. {% if item.product.picture %}
  6. <a href="{{ path('product',{id:item.product.id,'url':item.product.url}) }}"><img src="{{ asset(item.product.picture.webPath) | imagine_filter('product_small') }}" width="100" height="100" alt="{{ item.product.name }}"></a>
  7. {% elseif item.product.hasParent() and item.product.parent.picture %}
  8. <a href="{{ path('product',{id:item.product.id,'url':item.product.url}) }}"><img src="{{ asset(item.product.parent.picture.webPath) | imagine_filter('product_small') }}" width="100" height="100" alt="{{ item.product.name }}"></a>
  9. {% endif %}
  10. </div>
  11. <div class="infos">
  12. {% if item.product.manufacturer %}
  13. <a href="{{ path('manufacturer',{id:item.product.manufacturer.id,'url':item.product.manufacturer.url}) }}" class="manufacturer">{{ item.product.manufacturer.name }}</a>
  14. {% endif %}
  15. {% include 'front/catalog/product/view/soleil.html.twig' with {product:item.product} %}
  16. <a href="{{ path('product',{id:item.product.id,'url':item.product.url}) }}">{{ item.product.name }}</a>
  17. {% include 'front/catalog/product/view/stock.html.twig' with {product:item.product} %}
  18. {% if item.product.ecoTax > 0 %}
  19. <span class="eco-tax">{% trans %}Eco-participation : {% endtrans %} {{ item.product.ecoTax|price }}</span>
  20. {% endif %}
  21. {% if item.marketingRule %}
  22. {% include 'front/catalog/product/view/discount.html.twig' with {discount:item.marketingRule} %}
  23. {% elseif item.discountType %}
  24. {% include 'front/catalog/product/view/discount-type.html.twig' with {discountType:item.discountType} %}
  25. {% endif %}
  26. </div>
  27. </div>
  28. </td>
  29. <td class="qty-ctn">
  30. {% if not item.product.isGift() %}
  31. <div class="qty">
  32. <a class="down">-</a>
  33. <input type="text" value="{{ item.quantity }}" name="qty[{{ item.product.id }}]" class="qty-value" data-id="{{ item.product.id }}">
  34. <a class="up">+</a>
  35. </div>
  36. {% endif %}
  37. </td>
  38. <td class="unit-price">
  39. {{ item.product.getPrice(true, customerMgr.getPriceContext())|price }}
  40. </td>
  41. {# <td class="unit-price">
  42. {% if item.unitPrice != item.product.price %}
  43. <span class="unit-discount">
  44. <span class="old-price">{{ item.product.price|price }}</span>
  45. <span class="percent-discount">{{ item.percentDiscount|percent }}</span>
  46. </span>
  47. <span class="price reduced-price">{{ item.unitPrice|price }}</span>
  48. {% else %}
  49. <span class="price">{{ item.unitPrice|price }}</span>
  50. {% endif %}
  51. </td>#}
  52. <td class="price-ctn">
  53. {% if item.hasDiscount() %}
  54. <span class="old-price">{{ item.normalPrice|price }}</span>
  55. <span class="price reduced-price">{{ item.totalPrice|price }}</span>
  56. {% else %}
  57. <span class="old-price"></span>
  58. <span class="price">{{ item.totalPrice|price }}</span>
  59. {% endif %}
  60. <a class="delete">{% trans %}X{% endtrans %}</a>
  61. </td>
  62. </tr>