{% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
{#{% set hasDiscount = variant|money.has_discount({'channel': sylius.channel}) %}#}
{% set discount = money.calculateDiscount(variant, {'channel': sylius.channel, 'zone': sylius.channel.defaultTaxZone }) %}
{% set price = money.calculatePriceWithTax(variant) %}
{% set originalPrice = money.calculateOriginalPriceWithTax(variant, {'channel': sylius.channel, 'zone': sylius.channel.defaultTaxZone }) %}
<span data-js-product-price-group class="price-group">
<span class="original-price strike" data-js-product-original-price style="display: {{ discount.__toString != 0 ? 'inline' : 'none' }}" {{ sylius_test_html_attribute('product-original-price', money.calculateOriginalPrice(variant)) }}>
{{ originalPrice }}
</span>
<span class="price" class="main-price" data-js-product-price {{ sylius_test_html_attribute('product-price', money.calculatePrice(variant)) }}>
{{ money.calculatePriceWithTax(variant) }}
</span>
<span class="discount" data-js-product-discount style="display: {{ discount.__toString != 0 ? 'inline' : 'none' }}">(-{{ discount }} %)</span><br>
</span>