{% sw_extends '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}
{#NOTE: In this twig, price = calculatedPrice#}
{% block page_product_detail_price_inner %}
{% if page.product.calculatedPrices.extensions.acris_rrp_highest_rrp_struct %}
{% block acris_rrp_highest_only_price %}
{% sw_include "@Storefront/storefront/utilities/acris-rrp.html.twig" with { price: page.product.calculatedPrices.extensions.acris_rrp_highest_rrp_struct, rrpPriceRule: context.extensions.acris_rrp_rule_struct.rrpRule, rrpPriceHide: page.product.calculatedPrices.extensions.acris_rrp_price_hide_struct.rrpPriceHide } %}
{% endblock %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block page_product_detail_price_block_table_head_inner %}
<tr class="product-block-prices-row">
<th scope="col" class="product-block-prices-cell">
{{ "detail.dataColumnQuantity"|trans|sw_sanitize }}
</th>
<th scope="col" class="product-block-prices-cell">
{{ "detail.dataColumnPrice"|trans|sw_sanitize }}
</th>
{% if page.product.calculatedPrices.extensions.acris_rrp_price_exists_struct.getRrpPriceExists() %}
<th scope="col" class="product-block-prices-cell">
{{ 'acris-rrp-product-detail.textBeforeTable'|trans|sw_sanitize }}
</th>
{% endif %}
{% if page.product.calculatedPrice.referencePrice %}
<th scope="col" class="product-block-prices-cell">
{{ "detail.dataColumnReferencePrice"|trans|sw_sanitize }}
</th>
{% endif %}
</tr>
{% endblock %}
{% block page_product_detail_price_block_table_body_cell_price %}
{{ parent() }}
{% if page.product.calculatedPrices.extensions.acris_rrp_price_exists_struct.getRrpPriceExists() %}
<td class="product-block-prices-cell">
{% 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.detailDisplay %}
{% sw_include "@Storefront/storefront/utilities/acris-rrp-table.html.twig" with { price: price, rrpPriceRule: context.extensions.acris_rrp_rule_struct.rrpRule } %}
{% endif %}
</td>
{% endif %}
{% endblock %}
{% block page_product_detail_price_content %}
{% if price and 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.detailDisplay %}
{% sw_include "@Storefront/storefront/utilities/acris-rrp.html.twig" with { price: price.extensions.acris_rrp_price_price_struct, rrpPriceRule: context.extensions.acris_rrp_rule_struct.rrpRule, rrpPriceHide: price.extensions.acris_rrp_price_hide_struct.rrpPriceHide } %}
{% endif %}
{{ parent() }}
{% endblock %}