{% sw_extends '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
{% block component_product_box_price_info %}
{# @deprecated tag:v6.5.0 - purchaseUnit will be removed, use product.purchaseUnit if needed #}
{% set purchaseUnit = product.purchaseUnit %}
{# @deprecated tag:v6.5.0 - listingPrice will be removed without replacement, since it was removed from the product struct #}
{% set listingPrice = product.calculatedListingPrice %}
{# @deprecated tag:v6.5.0 - fromPrice will be removed without replacement #}
{% set fromPrice = listingPrice.from %}
{% set cheapest = product.calculatedCheapestPrice %}
{% set real = product.calculatedPrice %}
{% if product.calculatedPrices.count > 0 %}
{% set real = product.calculatedPrices.last %}
{% endif %}
{% set referencePrice = real.referencePrice %}
{% set displayFrom = product.calculatedPrices.count > 1 %}
{% set taxRate= product.tax.taxRate %}
<div class="product-price-info" data-tax="{{ taxRate }}">
{% block component_product_box_price_unit %}
{{ parent() }}
{% endblock %}
{% block component_product_box_price %}
{{ parent() }}
{% endblock %}
</div>
{% endblock %}