{* *}{strip} {* *} {if !empty($item)} {$priceFinal = 0} {$priceReal = 0} {$percent = 0} {$discounted = $helper->hasDiscount($item, 1, $priceReal, $priceFinal, $percent)} {* *} {$priceReal = ($discounted) ? floor($priceReal) : intval($priceReal)} {$priceFinal = intval($priceFinal)} {$percent = floor($percent)}
  • {* *} {findImage type=product view='*' assign=image} {* *} {$mod = 'mod-demo-image.htm'} {if $emulator->existsModule($mod)} {include "$mod"} {/if} {* *}
    {$image.alt|escape} {* *} {if $discounted} {$economy = $helper->priceForScreen($priceReal - $priceFinal, FALSE)} - {$percent}% Экономия - {$economy} {sign} {/if}
    {* *}

    {name}

    {* *}
    {$priceFinal} {sign} {if $discounted} {$priceReal} {sign} {/if}
    {* *} {if !empty($item->variants)} {$style = (count($item->variants) < 2) ? 'style="display: none"' : ''} {$checked = 'checked'}
    {* *} {foreach $item->variants as $v} {$num = $v@iteration} {* *} {$state = $helper->maybeSale($item, $num)} {$discounted = $helper->hasDiscount($item, $num, $priceReal, $priceFinal)} {$priceReal = floor($priceReal)} {$priceFinal = intval($priceFinal)} {* *} {if $state} {* *} {elseif $state === FALSE} {else} {/if} {* *} {/foreach}
    {$checked = ''} Нет в наличии Экспонат {if $discounted} {$priceReal} {/if} {$priceFinal} {sign}
    {* *} {if empty($checked)} {else} {/if}
    {else} Нет в наличии {/if}
  • {/if} {/strip}