<{if $alpine}> <{assign var="key" value=$key|default:'product'}> <{* Lande (#1363): landets locale (fx en-GB) til priceFormat(), når shoppen har lande *}> <{if $language}><{$price_locale = $webshop->getLocale()}><{else}><{$price_locale = $settings.language.locale}><{/if}>
<{* Enhedspris (#663): fx "3,29 kr/stk" under prisen — kun kort + produktside (unit_price=true) *}> <{if $unit_price}> <{capture assign="price_unit_fallback"}><{t}>stk<{/t}><{/capture}> <{/if}> <{else}> <{if $product}> <{assign var="price" value=$product->getRealPrice()}> <{assign var="sale_price" value=$product->getSalePrice()}> <{assign var="normal_price" value=$product->getPrice()}> <{assign var="omnibus_price" value=""}> <{if $settings.product.enable_omnibus_price && $sale_price}> <{assign var="omnibus_price" value=$product->getLowest30DayPrice()}> <{if $omnibus_price && $omnibus_price > $sale_price}> <{assign var="normal_price" value=$omnibus_price}> <{/if}> <{/if}> <{if $show_price_per_unit && $basket_amount && $basket_attr }> <{math assign="price_per_unit" equation="x/y" x=$product->getRealPrice($basket_amount, $basket_attr) y=$basket_amount}> <{assign var="price" value=$product->getRealPrice($basket_amount, $basket_attr)}> <{elseif $show_price_per_unit && $basket_amount}> <{math assign="price_per_unit" equation="x/y" x=$product->getRealPrice($basket_amount) y=$basket_amount}> <{assign var="price" value=$product->getRealPrice($basket_amount)}> <{/if}> <{if $price > 0}>
<{if $product->hasAttributePrice() && $show_from_prefix}> <{t}>Fra<{/t}> <{/if}> <{if $product->hasAttributePrice() && !$basket_amount}> <{if $product->getLowestSalePrice() < $product->getLowestPrice()}> <{$product->getLowestSalePrice()|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $show_currency}>
<{$currency|escape}>
<{/if}>
<{$product->getLowestPrice()|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $show_currency}>
<{$currency|escape}>
<{/if}>
<{else}>
<{$product->getLowestPrice()|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $show_currency}>
<{$currency|escape}>
<{/if}>
<{/if}> <{else}> <{if $sale_price && $show_prev != 'false'}> <{$price|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $show_currency}>
<{$currency|escape}>
<{/if}>
<{$normal_price|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $show_currency}>
<{$currency|escape}>
<{/if}>
<{else}>
<{$price|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $show_currency}>
<{$currency|escape}>
<{/if}>
<{/if}> <{/if}>
<{else}>
<{t}>Gratis<{/t}>
<{/if}> <{if $show_price_per_unit && $basket_amount > 1}>
<{t}>Pr. enhed<{/t}> <{$price_per_unit|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $show_currency}> <{$currency|escape}> <{/if}>
<{/if}> <{* Enhedspris (#663): fx "3,29 kr/stk" under prisen — kun kort + produktside (unit_price=true) *}> <{if $unit_price && !$product->hasAttributePrice() && $product->getUnitAmount() > 0 && $price > 0}> <{math assign="per_unit" equation="x/y" x=$price y=$product->getUnitAmount()}>
<{$per_unit|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency|escape}>/<{$product->getUnitLabel()|default:"stk"|escape}>
<{/if}> <{/if}> <{/if}>