templates/bundles/SyliusShopBundle/Product/Show/_price.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. {% set variant = product|sylius_resolve_variant %}
  3. {% set hasDiscount = variant|sylius_has_discount({'channel': sylius.channel}) %}
  4. <span class="ui small header" id="product-original-price" {{ sylius_test_html_attribute('product-original-price', money.calculateOriginalPrice(variant)) }}>
  5.     {% if hasDiscount %}
  6.         <del>{{ money.calculateOriginalPrice(variant) }}</del>
  7.     {% endif %}
  8. </span>
  9. <span class="ui huge header" id="product-price" {{ sylius_test_html_attribute('product-price', money.calculatePrice(variant)) }}>
  10.     {{ money.calculatePrice(variant) }}&nbsp;HT
  11. </span>