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

Open in your IDE?
  1. {# uvp data in net initially #}
  2. {% block product_price_uvp_info %}
  3.     {% if product.translated.customFields.grimm_customFields_uvp %}
  4.         {% set uvp = product.translated.customFields.grimm_customFields_uvp %}
  5.         {% if context.taxState == "gross" %}  
  6.             {# convert uvp to gross  #}
  7.             {% set uvp = (uvp * ((100 + product.tax.taxRate) / 100))|round(2) %}
  8.         {% endif  %}
  9.         {% set isRequestOnly = product.translated.customFields.grimm_customfields_productRequest_only %}
  10.         {% block product_price_uvp_info_inner %}
  11.             {% if isRequestOnly == false %}
  12.                 {% if uvp > product.calculatedPrice.unitPrice %}
  13.                     <p class="product-uvp-info">
  14.                     UVP: {{ uvp|currency }}
  15.                     </p>
  16.                 {% endif %}
  17.             {% endif  %}
  18.         {% endblock %}
  19.     {% endif  %}
  20. {% endblock %}