custom/plugins/AtcCustom/src/Resources/views/storefront/component/buy-widget/buy-widget-price.html.twig line 1

Open in your IDE?
  1. {% extends '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
  2. {% block buy_widget_price_content %}
  3.     {% set isRegulationPrice = price.regulationPrice != null %}
  4.     {% set listPrice = price.listPrice %}
  5.     {# {% if listPrice.percentage > 0 %} #}
  6.         {% block buy_widget_was_price %}
  7.             {% block buy_widget_was_price_badge %}{% endblock %}
  8.             {% block buy_widget_was_price_wrapper %}
  9.             <span class="product-detail-list-price-wrapper">
  10.                 {% if beforeListPriceSnippetExists %}{{"listing.beforeListPrice"|trans|trim}}{% endif %}
  11.                 <div class="d-flex row">
  12.                     <div class="col d-flex">
  13.                     {% if listPrice.percentage > 0 %}
  14.                     <span{% if not (afterListPriceSnippetExists or beforeListPriceSnippetExists) %} class="list-price-price"{% endif %}>{{ listPrice.price|currency }}</span>
  15.                     {% endif %}
  16.                     <p class="product-detail-price{% if listPrice.percentage > 0 %} with-list-price{% endif %}">
  17.                         {{ price.unitPrice|currency }}
  18.                     </p>
  19.                     {% if afterListPriceSnippetExists %}
  20.                         {{"listing.afterListPrice"|trans|trim}}
  21.                     {% endif %}
  22.                     </div>
  23.                 </div>
  24.             </span>
  25.             {% if listPrice.percentage > 0 %}
  26.                 <span class="product-detail-list-price-percentage">
  27.                     <span class="list-price-percentage">{{ "detail.listPricePercentage"|trans({'%price%': listPrice.percentage })|sw_sanitize }}</span>
  28.                 </span>
  29.             {% endif %}
  30.             {% endblock %}
  31.         {% endblock %}
  32.     {# {% endif %} #}
  33.     {% if isRegulationPrice %}
  34.         <span class="product-detail-list-price-wrapper">
  35.             <span class="regulation-price">{{ "general.listPricePreviously"|trans({'%price%': price.regulationPrice.price|currency }) }}</span>
  36.         </span>
  37.     {% endif %}
  38. {% endblock %}