{% set listingPrice = variant.listingPrice %}
{% set real = variant.price %}
{% if variant.prices.count > 0 %}
{% set real = variant.prices.last.price.last %}
{% endif %}
<div class="col-3 product-price-info">
<div class="product-price-wrapper">
{% set price = real %}
{% set isListPrice = price.listPrice.percentage > 0 %}
{% if displayFrom or (displayParent and displayFromVariants) %}
{{ "listing.listingTextFrom"|trans|sw_sanitize }}
{% endif %}
<span class="product-price{% if isListPrice and not displayFrom and not displayFromVariants %} with-list-price{% endif %}">
{% if main %}
{% set price = page.product.calculatedPrice %}
{% if page.product.calculatedPrices|length == 1 %}
{% set price = page.product.calculatedPrices.first %}
{% endif %}
{{ price.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
{% else %}
{{ page.ldsVariantPricesOptions[group.id][option.id].productPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
{% endif %}
</span>
</div>
</div>