custom/plugins/AlexMax/src/Resources/views/storefront/component/product/card/price-unit.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
  2. {% block component_product_box_price %}
  3.     {% set purchaseUnit = product.purchaseUnit %}
  4.     {% set listingPrice = product.calculatedListingPrice %}
  5.     {% set listPrice = product.calculatedPrice.listPrice %}
  6.     {% set discount = listPrice.percentage %}
  7.     {% if discount > 0 and zeobvVisibleDiscountConfig.showDiscountsOnListingPages or shopware.config.ZeobvVisibleDiscounts.config.showDiscountsOnListingPages %}
  8.         <p class="product-price{% if listPrice.percentage > 0 %} with-list-price{% endif %}">
  9.             {% if product.priceRange %}
  10.                 {{ listingPrice.from.unitPrice|currency }}
  11.                 -
  12.                 {{ listingPrice.to.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
  13.                 {% if listPrice.percentage > 0 %}
  14.                     <span class="list-price" style="text-decoration: line-through;">
  15.                         {{ listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}
  16.                     </span>
  17.                     {% if zeobvVisibleDiscountConfig.showExactDiscountPercentageOnListingPages %}
  18.                         <span class="list-price-percentage">{{"detail.listPricePercentage"|trans({'%price%': listPrice.percentage})|sw_sanitize }}</span> 
  19.                     {% endif %}
  20.                 {% endif %}
  21.             {% else %}
  22.                 {{ product.calculatedPrice.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
  23.                 {% if listPrice.percentage > 0 %}
  24.                     <span class="list-price" style="text-decoration: line-through;">
  25.                         {{ listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}
  26.                     </span>
  27.                     {% if zeobvVisibleDiscountConfig.showExactDiscountPercentageOnListingPages %}
  28.                         <span class="list-price-percentage">{{"detail.listPricePercentage"|trans({'%price%': listPrice.percentage})|sw_sanitize }}</span>
  29.                     {% endif %}
  30.                 {% endif %}
  31.             {% endif %}
  32.         </p>
  33.     {% else %}
  34.         {{ parent() }}
  35.     {% endif %}
  36. {% endblock %}