{block name='productdetails-range'}
    <span{if $Artikel->Preise->oPriceRange->isRange() && $tplscope !== 'box'} itemprop="priceSpecification"
    itemscope itemtype="https://schema.org/UnitPriceSpecification"{/if}>
        {if $tplscope !== 'detail' && $Artikel->Preise->oPriceRange->isRange()}
            {if $Artikel->Preise->oPriceRange->rangeWidth() <= $Einstellungen.artikeluebersicht.articleoverview_pricerange_width}
                {assign var=rangePrices value=$Artikel->Preise->oPriceRange->getLocalizedArray($NettoPreise)}
                {if isset($smarty.session.tnt_coupons_product[$Artikel->kArtikel]->new_price)}
                    <span class="text-danger text-decoration-line-through text-nowrap-util fs-5">
                        {$Artikel->Preise->cVKLocalized[$NettoPreise]}</span>
                    {$smarty.session.tnt_coupons_product[$Artikel->kArtikel]->new_price}*
                {else}
                    <span class="first-range-price">{$rangePrices[0]} - </span>
                    <span class="second-range-price">{$rangePrices[1]}
                        {if $tplscope !== 'detail'}
                            <span class="footnote-reference"></span>
                        {/if}
                    </span>
                {/if}
            {else}
                {if isset($smarty.session.tnt_coupons_product[$Artikel->kArtikel]->new_price)}
                    <span class="text-danger text-decoration-line-through text-nowrap-util fs-5">
                        {$Artikel->Preise->cVKLocalized[$NettoPreise]}</span>
                    {$smarty.session.tnt_coupons_product[$Artikel->kArtikel]->new_price}*
                {else}
                    {$Artikel->Preise->oPriceRange->getMinLocalized($NettoPreise)}
                    <span class="footnote-reference"></span>
                {/if}
            {/if}
        {else}
            {if $Artikel->Preise->oPriceRange->isRange() && ($Artikel->nVariationsAufpreisVorhanden === 1
                || $Artikel->bHasKonfig) && $Artikel->kVaterArtikel === 0}
                {if isset($smarty.session.tnt_coupons_product[$Artikel->kArtikel]->new_price)}
                    <span class="text-danger text-decoration-line-through text-nowrap-util fs-5">{$Artikel->Preise->oPriceRange->getMinLocalized($NettoPreise)}</span>
                    <a href="#modalCoupons" class="text-decoration-none" data-toggle="modal"
                       data-bs-toggle="modal">{$smarty.session.tnt_coupons_product[$Artikel->kArtikel]->new_price}
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor"
                             class="bi bi-question-circle align-top" viewBox="0 0 16 16">
                            <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
                            <path d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"/>
                        </svg>
                    </a>
                {else}
                    {$Artikel->Preise->oPriceRange->getMinLocalized($NettoPreise)}
                {/if}
            {else}
                {if isset($smarty.session.tnt_coupons_product[$Artikel->kArtikel]->new_price)}
                    <span class="text-danger text-decoration-line-through text-nowrap-util fs-5">{$Artikel->Preise->cVKLocalized[$NettoPreise]}</span>
                    <a href="#modalCoupons" class="text-decoration-none" data-toggle="modal"
                       data-bs-toggle="modal">{$smarty.session.tnt_coupons_product[$Artikel->kArtikel]->new_price}
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor"
                             class="bi bi-question-circle align-top" viewBox="0 0 16 16">
                            <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
                            <path d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"/>
                        </svg>
                    </a>
                {else}
                    {$Artikel->Preise->cVKLocalized[$NettoPreise]}
                {/if}
            {/if}
        {/if}
        {if $tplscope !== 'detail' && !$Artikel->Preise->oPriceRange->isRange()}
            <span class="footnote-reference"></span>
        {/if}
    </span>
{/block}
