vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Show/_price.html.twig line 1

  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 header" id="product-original-price"{% if not hasDiscount %} style="display: none;"{% endif %} {{ 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) }}
  11. </span>