templates/front/catalog/model/view/reference-line.html.twig line 1

Open in your IDE?
  1. <div class="reference reference-line" id="reference-{{ product.id }}">
  2. {% set country = customerMgr.getCustomerCountry() %}
  3. <div class="reference-ctn">
  4. {% include 'front/catalog/product/view/soleil.html.twig' %}
  5. <div class="stock-ctn">
  6. {% include 'front/catalog/product/view/stock.html.twig' %}
  7. {% if product.isAvailableForCountry(country) %}
  8. {% if product.id in discounts|keys %}
  9. {% set productsDiscounts = attribute(discounts, product.id) %}
  10. {% for discount in productsDiscounts %}
  11. {% include 'front/catalog/product/view/discount.html.twig' with {discount:discount} %}
  12. {% endfor %}
  13. {% endif %}
  14. {% endif %}
  15. </div>
  16. <div class="name-ctn">
  17. {% if product.isAvailableForCountry(country) %}
  18. {% if product.getPrice(false, priceGroup) %}
  19. {% if customerMgr.canSeePrices() and not product.isStopped() %}
  20. {% include 'front/catalog/product/view/price-grid.html.twig' with {priceGrid:attribute(priceGrids,product.id)} %}
  21. {% endif %}
  22. {% set currentQty = cartMgr.qtyInCart(product) %}
  23. <div class="bt-cart {{ currentQty > 0 ? 'in-cart' : ''}}">
  24. {% if customerMgr.canSeePrices() and product.isAvailable() %}
  25. {% include 'front/cart/bt.html.twig' with {product:product} %}
  26. <div class="qty">
  27. <a class="down">-</a>
  28. <input type="text" value="{{ currentQty }}" name="qty[{{ product.id }}]" class="qty-value" data-id="{{ product.id }}">
  29. <a class="up">+</a>
  30. </div>
  31. {% endif %}
  32. </div>
  33. {% elseif customerMgr.isExpert() %}
  34. <p>{% trans %}Produit non disponible pour les Experts{% endtrans %}</p>
  35. {% endif %}
  36. {% endif %}
  37. </div>
  38. </div>
  39. {% if customerMgr.canSeePrices() and (product.ecotax > 0) %}
  40. <div class="eco-tax">{% trans %}+ éco-participation{% endtrans %} : {{ product.ecotax|price }}</div>
  41. {% endif %}
  42. {% if customerMgr.canSeePrices() and not product.isStopped() and not product.isAvailable() %}
  43. <div class="stock-alert" style="height:30px; line-height:15px;">
  44. <a data-product="{{ product.id }}" data-customer="{{ customer.id }}" data-language="{{ app.request.getLocale() }}" class="bt-stock-alert">{% trans %}Prévenez-moi par email dès que l'article est en stock.{% endtrans %}</a><br>
  45. </div>
  46. {% endif %}
  47. </div>