<{if $alpine}> <{assign var="key" value=$key|default:'product'}>
<{else}> <{if $product}> <{assign var="price" value=$product->getRealPrice()}> <{assign var="sale_price" value=$product->getSalePrice()}> <{assign var="normal_price" value=$product->getPrice()}> <{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}>From<{/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}>Free<{/t}>
<{/if}> <{if $show_price_per_unit && $basket_amount > 1}>
<{t}>Pr unit<{/t}> <{$price_per_unit|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $show_currency}> <{$currency|escape}> <{/if}>
<{/if}> <{/if}> <{/if}>