templates/front/catalog/product/view/reference-line.html.twig line 6

Open in your IDE?
  1. <div class="reference">
  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. {% endif %}
  27. </div>
  28. {% elseif customerMgr.isExpert() %}
  29. <p>{% trans %}Produit non disponible pour les Experts{% endtrans %}</p>
  30. {% endif %}
  31. {% endif %}
  32. </div>
  33. </div>
  34. {% if customerMgr.canSeePrices() and (product.ecotax > 0) %}
  35. <div class="eco-tax">{% trans %}+ éco-participation{% endtrans %} : {{ product.ecotax|price }}</div>
  36. {% endif %}
  37. {% if customerMgr.canSeePrices() and not product.isStopped() and not product.isAvailable() %}
  38. <div class="stock-alert" style="height:30px; line-height:15px;">
  39. <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>
  40. </div>
  41. {% endif %}
  42. </div>