custom/plugins/ChiliCustom/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.      <p class="product-detail-price{% if listPrice.percentage > 0 %} with-list-price{% endif %}">
  5.          {{ price.unitPrice|currency }}
  6.      <p class="mwst">{{ "inkl. Mwst" }}</p>
  7.      </p>
  8.      {% if listPrice.percentage > 0 %}
  9.          {% block page_product_detail_was_price %}
  10.              {% block page_product_detail_was_price_badge %}
  11.                  <span class="list-price-badge">&#37;</span>
  12.              {% endblock %}
  13.              {% block page_product_detail_was_price_wrapper %}
  14.                  <span class="product-detail-list-price-wrapper">
  15.                             {{"listing.beforeListPrice"|trans|trim}}
  16.                             <span {% if not ("listing.beforeListPrice"|trans|length > 0 or "listing.afterListPrice"|trans|length > 0) %}class="list-price-price"{% endif %}>
  17.                                 {{ listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}
  18.                             </span>
  19.                             {{"listing.afterListPrice"|trans|trim}}
  20.                             <span class="list-price-percentage">{{ "detail.listPricePercentage"|trans({'%price%': listPrice.percentage })|sw_sanitize }}</span>
  21.                         </span>
  22.              {% endblock %}
  23.          {% endblock %}
  24.      {% endif %}
  25.  {% endblock %}
  26.  {% block page_product_detail_price_block_table_head %}
  27.      <thead class="product-block-prices-head">
  28.      {% block page_product_detail_price_block_table_head_inner %}
  29.          <tr class="product-block-prices-row">
  30.              <th scope="col" class="product-block-prices-cell">
  31.                  {{ "Ihr Preisvorteil"|upper|sw_sanitize }}
  32.              </th>
  33.              <th scope="col" class="product-block-prices-cell">
  34.              </th>
  35.              {% if page.product.calculatedPrice.referencePrice %}
  36.                  <th scope="col" class="product-block-prices-cell">
  37.                      {{ "detail.dataColumnReferencePrice"|trans|sw_sanitize }}
  38.                  </th>
  39.              {% endif %}
  40.          </tr>
  41.      {% endblock %}
  42.      </thead>
  43.  {% endblock %}