vendor/gourmops/theme/src/Resources/views/storefront/page/product-detail/buy-widget-price.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}
  2. {% block page_product_detail_price_content %}
  3.     {% set listPrice = price.listPrice %}
  4.     {% set isListPrice = listPrice.percentage > 0 %}
  5.     {% set isRegulationPrice = price.regulationPrice != null %}
  6.     {% set weight = page.product.weight %}
  7.     <p class="product-detail-price{% if isListPrice %} with-list-price{% endif %}{% if isRegulationPrice %} with-regulation-price{% endif %}">
  8.         {{ price.unitPrice|currency }}
  9.         {% if weight %}
  10.             <span class="product-weight font-weight-normal">({{ weight * 1000 }} g)</span>
  11.         {% endif %}
  12.     </p>
  13.     {% if isListPrice %}
  14.         {% block page_product_detail_was_price %}
  15.             {{ parent() }}
  16.         {% endblock %}
  17.     {% endif %}
  18.     {% if isRegulationPrice %}
  19.         <span class="product-detail-list-price-wrapper">
  20.             <span class="regulation-price">{{ "general.listPricePreviously"|trans({'%price%': price.regulationPrice.price|currency }) }}{{ "general.star"|trans|sw_sanitize }}</span>
  21.         </span>
  22.     {% endif %}
  23. {% endblock %}