{* *}{strip} {* *} {echoVar from='config->colorStyle' assign=colorStylePath} {if $colorStylePath != ''} {$colorStylePath = 'restyle-'|cat:($colorStylePath|escape)|cat:'/'} {/if} {* *} {if !empty($item)} {$model = $item->model|default:'Без названия!'} {$alt = $model|escape} {* *} {$pid = $item->product_id|default:''|escape} {$vid = $item->variants[0]->variant_id|default:''|escape} {* *} {$exist = $item->variants[0]->stock|default:0 > 0} {* *} {$old = ''} {$discounted = $helper->hasDiscount($item, 1, $old)} {* *} {$maxsize_name = $maxsize_name|default:100|string_format:'%d'} {$maxsize_name = ($maxsize_name >= 1) ? $maxsize_name : 100} {* *} {$maxsize_descr = $maxsize_descr|default:250|string_format:'%d'} {$maxsize_descr = ($maxsize_descr >= 1) ? $maxsize_descr : 250}
{$description|truncate:$maxsize_descr:'...':true|replace:$marker:'
'}
{* *} {if empty($item->non_usable)} {if $exist} В корзину {else} Под заказ {/if} {* *} {if !$exist}