{% sw_extends '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
{% block component_product_box_price_unit %}
{{ parent() }}
{% 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 %}
{% if product.calculatedPrices.count > 1 %}
<div class="acris-rrp-product-box-text">
{% 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 } %}
</div>
{% else %}
<div class="acris-rrp-product-box-text">
{% 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 } %}
</div>
{% endif %}
{% endif %}
{% endblock %}