custom/plugins/AcrisRrpCS/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_unit %}
  3.     {{ parent() }}
  4.     {% if context.extensions.acris_rrp_rule_struct.rrpRule is not empty and context.extensions.acris_rrp_rule_struct.rrpRule.active and context.extensions.acris_rrp_rule_struct.rrpRule.boxDisplay %}
  5.         {% if product.calculatedPrices.count > 1 %}
  6.             <div class="acris-rrp-product-box-text">
  7.                 {% sw_include "@Storefront/storefront/utilities/acris-rrp-unit-advanced.html.twig" with { price: product.calculatedPrices.last.extensions.acris_rrp_price_price_struct, rrpPriceRule: context.extensions.acris_rrp_rule_struct.rrpRule, rrpPriceHide: product.calculatedPrices.last.extensions.acris_rrp_price_hide_struct.rrpPriceHide } %}
  8.             </div>
  9.         {% else %}
  10.             <div class="acris-rrp-product-box-text">
  11.                 {% sw_include "@Storefront/storefront/utilities/acris-rrp.html.twig" with { price: product.calculatedPrice.extensions.acris_rrp_price_price_struct, rrpPriceRule: context.extensions.acris_rrp_rule_struct.rrpRule, rrpPriceHide: product.calculatedPrice.extensions.acris_rrp_price_hide_struct.rrpPriceHide } %}
  12.             </div>
  13.         {% endif %}
  14.     {% endif %}
  15. {% endblock %}