custom/plugins/HuebertAddOrderAttributes/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 isRegulationPrice = price.regulationPrice != null %}
  5.     <div class="d-flex flex-wrap" style="align-items: flex-end;">
  6.     <p class="product-detail-price{% if listPrice.percentage > 0 %} with-list-price{% endif %}" data-price="{{ price.unitPrice }}">
  7.        <span>{{ price.unitPrice|currency }}</span>{{ "general.star"|trans|sw_sanitize }}
  8.     </p>
  9.     {% if listPrice.percentage > 0 %}
  10.         {% block page_product_detail_was_price %}
  11.             {% block page_product_detail_was_price_badge %}
  12.                 <span class="list-price-badge">&#37;</span>
  13.             {% endblock %}
  14.             {% set afterListPriceSnippetExists = "listing.afterListPrice"|trans|length > 0 %}
  15.             {% set beforeListPriceSnippetExists = "listing.beforeListPrice"|trans|length > 0 %}
  16.             {% block page_product_detail_was_price_wrapper %}
  17.                 <span class="product-detail-list-price-wrapper">
  18.                             {% if beforeListPriceSnippetExists %}{{"listing.beforeListPrice"|trans|trim}}{% endif %}
  19.                             <span{% if not (afterListPriceSnippetExists or beforeListPriceSnippetExists) %} class="list-price-price"{% endif %}>{{ listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}</span>
  20.                             {% if afterListPriceSnippetExists %}
  21.                                 {{"listing.afterListPrice"|trans|trim}}
  22.                             {% endif %}
  23.                             <span class="list-price-percentage">{{ "detail.listPricePercentage"|trans({'%price%': listPrice.percentage })|sw_sanitize }}</span>
  24.                         </span>
  25.             {% endblock %}
  26.         {% endblock %}
  27.     {% endif %}
  28.     {% if isRegulationPrice %}
  29.         <div class="product-detail-list-price-wrapper">
  30.             <span class="regulation-price">&nbsp;{{ "general.listPricePreviously"|trans({'%price%': price.regulationPrice.price|currency }) }}{{ "general.star"|trans|sw_sanitize }}</span>
  31.         </div>
  32.     {% endif %}
  33.     </div>
  34.     <div class="hueb-price">
  35.     </div>
  36. {% endblock %}