templates/front/catalog/product/view/price-grid.html.twig line 1

Open in your IDE?
  1. {% if customerMgr.isExpert() %}
  2. <div class="price-grid price-grid-expert price-grid-{{ product.id }}" data-pid="{{ product.id }}">
  3. <div class="price current-price">
  4. {{ product.getPrice(false, priceGroup) | price }}
  5. </div>
  6. <div class="price-tax-incl">
  7. {{ product.getPrice(false, priceGroup, true) | price }}<sup>{{ 'ttc' | trans }}</sup>
  8. </div>
  9. </div>
  10. {% else %}
  11. <div class="price-grid price-grid-{{ product.id }}" data-pid="{{ product.id }}">
  12. {% for line in priceGrid %}
  13. <div>
  14. {% if loop.last %}
  15. {% if line.from > 1 %}
  16. <div class="qtys">{% trans %}à partir de{% endtrans %} {{ line.from }} {% trans %}et +{% endtrans %}</div>
  17. {% endif %}
  18. {% elseif line.from == line.to %}
  19. <div class="qtys">{% trans %}pour{% endtrans %} {{ line.from }}</div>
  20. {% else %}
  21. <div class="qtys">{% trans %}de{% endtrans %} {{ line.from }} {% trans %}à{% endtrans %} {{ line.to }}</div>
  22. {% endif %}
  23. {% set hasDiscount = line.normal > line.price %}
  24. {% if (discountsList is defined) and (product.id not in discountsList) and product.hasSoleilPrice() and (not hasDiscount or (line.discountType == 'soleil' or line.discountType == 'bienvenue')) %}
  25. {% set soleilDiscount = cart.hasSoleilDiscount(product) %}
  26. <table class="soleil-price">
  27. <tr>
  28. <th>Prix brut</th>
  29. <th>Prix pro {% if product.isSoleil() %}<span class="picto soleil"></span>{% elseif product.isNonSoleil() %}<span class="picto non-soleil"></span>{% endif %}<span class="tooltip price-notice" rel-tooltip="discount-soleil-{{ product.id }}">i</span></th>
  30. </tr>
  31. <tr>
  32. <td class="price-normal {% if not soleilDiscount %}current-price{% endif %}">{{ product.getPrice() | price }}</td>
  33. <td class="price-reduced {% if soleilDiscount %}current-price{% endif %}">{{ product.getSoleilPrice(false) | price }}</td>
  34. </tr>
  35. </table>
  36. {% else %}
  37. <div class="price {{ hasDiscount ? 'stricked-price' : '' }}">{{ hasDiscount ? line.normal|price : '' }}</div>
  38. <div class="price current-price {{ hasDiscount ? 'reduced-price' : '' }}">{{ line.price|price }}</div>
  39. <div class="price percent">{{ hasDiscount ? line.percent|percent : '' }}</div>
  40. {% endif %}
  41. </div>
  42. {% endfor %}
  43. </div>
  44. <div class="hidden discount-soleil-{{ product.id }}">
  45. {% if product.hasSoleil() %}
  46. <p class="price-soleil-notice">{% trans %}-25% de remise sur les produits <span class="picto soleil"></span> <br>dès 100€ HT de commande de produits <span class="picto soleil"></span>{% endtrans %}</p>
  47. {% endif %}
  48. {% if product.hasNonSoleil() %}
  49. <p class="price-soleil-notice">{% trans %}-10% de remise sur les produits <span class="picto non-soleil"></span> <br>dès 100€ HT de commande de produits <span class="picto non-soleil"></span>{% endtrans %}</p>
  50. {% endif %}
  51. {# <p class="price-soleil-notice"><span class="picto {{ product.isSoleil() ? '' : 'non-' }}soleil"></span>Remise appliquée sur le prix initial</p>#}
  52. </div>
  53. {% endif %}