{* *}{strip} {* *} {if !empty($product)} {include 'common/breadcrumbs.htm'} {* *} {body from=product assign=bodyText} {$pattern = '/^(.*?)(производитель\s*:.*)$/siu'} {$propText = preg_replace($pattern, '$2', $bodyText)} {if $propText != $bodyText} {$propText = preg_replace('/(]*?>[ \s\t\r\n]*)+/iu', '[br]', $propText)} {plainText from=propText assign=propText} {$items = explode('[br]', $propText)} {$propText = []} {foreach $items as $item} {$item = trim($item)} {if !empty($item)} {if !preg_match('/^\s*товар\s+на\s+сайте\s+производителя\s*:/iu', $item)} {$propText[] = $item} {/if} {/if} {/foreach} {if !empty($propText)} {$bodyText = trim(preg_replace($pattern, '$1', $bodyText))} {plainText from=bodyText assign=bodyText} {/if} {else} {$propText = []} {/if} {* *} {$htmlPropertiesExists = FALSE} {capture assign=htmlProperties}
Характеристики
{$countProps = 0} {$countPropRows = 0} {if !empty($product->properties_tree)} {foreach $product->properties_tree as $item} {$countPropRows = $countPropRows + 1} {$countProps = $countProps + count($item)} {/foreach} {/if} {* *} {if !empty($config->ecommercePropertiesFlat)} {if !empty($propText)} {$htmlPropertiesExists = TRUE} {else} {if $countPropRows > 0} {$htmlPropertiesExists = TRUE} {/if} {/if} {if empty($htmlPropertiesExists)}
Характеристики отсутствуют!
{/if} {* *} {else} {$htmlPropertiesExists = TRUE} {if $countPropRows > 0} {$columnSize = intval(ceil($countPropRows / 4))} {$number = 0} {$newRow = TRUE}
    {foreach $product->properties_tree as $prop} {foreach $prop as $item}
  • {if $item@first} {($newRow || count($prop) == 1) ? '' : '
    '} {echoVar from='item->name'}: {**} {else} {echoVar from='item->name'}: {**} {/if} {echoVar from='item->value'}
  • {/foreach} {$number = $number + 1} {$newRow = $number % $columnSize == 0} {if $newRow}
    {/if} {/foreach}
{/if} {* *}

Гарантия: {$product->guarantee|default:'--/--'}

Производитель: {$product->brand|default:'--/--'}

{/if}
{/capture} {* *} {$flagMores = !empty($config->ecommerceAccessoriesOnly)} {$accessories = ($flagMores) ? ($product->related_products|default:[]) : ($mores|default:[])} {$htmlMoresExists = !empty($accessories)} {capture assign=htmlMores} {if empty($config->ecommerceNoProductAccessories)}
{($flagMores) ? 'Аксессуары' : 'Похожие товары'}
{include 'common/list-products.htm' items = $accessories columns = 3}
{/if} {/capture} {* *}

{name from=product}

Код {$product->pcode|default:'--/--'} {* *} {$images = []} {$number = 0} {section name=images loop=1000} {$number = $number + 1} {if !empty($config->demo)} {if $number > 4}{break}{/if} {$image = [ 'url' => $theme|cat:'images/demo/product-'|cat:$number|cat:'.jpg', 'alt' => '' ]} {else} {findImage from=product type=product num=$number view='*' assign=image} {if $number > 1 && empty($image.found)} {break} {/if} {/if} {$images[] = $image} {/section} {* *}
{* *}

Доставка: перевозчиком в любой город страны.

{* *} {$variant = reset($product->variants)} {$price = $variant->discount_price|default:0} {$price = $helper->priceForScreen($price)} {$price = ceil($price)} {cartUrl from=product assign=url} {$state = $helper->maybeSale($product)}

{$price} {sign}

{if $state}

/ {($variant->stock > 0) ? 'в наличии' : 'под заказ'}

Купить {elseif $state === FALSE}

/ отсутствует

Купить {else}

/ не продаётся

Экспонат {/if}
{* *}

Гарантия: {$product->guarantee|default:'--/--'}

{* *} {* *}
{annotation from=product assign=value}

{plainText from=value size=400}

{* *}
{* *} {$active1 = 'active'} {$active3 = ''} {if !empty($message) || !empty($error)} {$active1 = ''} {$active3 = 'active'} {capture assign=otherJS} {echoVar from=otherJS} {/capture} {/if}
{* *}
{$bodyText}
{* *} {if !empty($config->ecommerceDescriptionPlus)} {if !empty($htmlPropertiesExists)} {$htmlProperties} {/if} {if !empty($htmlMoresExists)} {$htmlMores} {/if} {/if}
{* *}
{$htmlProperties}
{* *}
{if !empty($comments)}

Оставить отзыв

{* *} {function localListComments} {foreach $comments as $item} {inputValue from='item->comment_id' assign=id} {$text = trim($item->comment|default:'')} {$grade = preg_replace('/^.*Оценка товара: ([0-9]+)$/ius', '$1', $text)} {$grade = ($grade == $text) ? 0 : max(0, min($grade, 5))} {$text = trim(preg_replace('/^(.*)Оценка товара: [0-9]+$/ius', '$1', $text))}
  •  
  •  
  •  
  •  
  •  

Оценка товара:

{inputValue from='item->name'}, {echoVar from='item->date'}

{$text|escape|nl2br}

ответить

{* *} {if !empty($item->discussion)} {localListComments comments = $item->discussion level = $level + 1} {/if} {/foreach} {/function} {* *} {localListComments level=1}
{/if} {* *} {if !empty($message)}
{$message}
{$grade = 0} {$parentId = 0} {else} {if !empty($error)}
{$error}
{/if} {$grade = intval($smarty.post.grade|default:0)} {inputValue from=post_parent_id assign=parentId} {/if} {* *}

Оставить отзыв

{* *} {inputValue from=post_message assign=text} {$text = trim(preg_replace('/^(.*)Оценка товара: [0-9]+$/ius', '$1', $text))}
{* *}
{* *}
{$grade = max(0, min($grade, 5))} {capture assign=otherJS} {echoVar from=otherJS} {/capture} {* *}
{* *}
{* *} {* *}
{* *} {if empty($config->ecommerceNoProductAccessories)}
{$htmlMores}
{/if} {* *} {if empty($config->ecommerceNoProductDelivery)}

Доставка экспедитором

Напишите здесь (в файле product.htm шаблона) условия доставки для данного способа. Напишите здесь условия доставки для данного способа. Напишите здесь условия доставки для данного способа. Напишите здесь условия доставки для данного способа.

Доставка в города страны

Напишите здесь условия доставки для данного способа.

  • Напишите здесь условия доставки для данного способа.
  • Напишите здесь условия доставки для данного способа.

Напишите здесь условия доставки для данного способа. Напишите здесь условия доставки для данного способа. Напишите здесь условия доставки для данного способа. Напишите здесь условия доставки для данного способа.

Гарантия

Напишите здесь условия гарантии. Напишите здесь условия гарантии. Напишите здесь условия гарантии. Напишите здесь условия гарантии. Напишите здесь условия гарантии. Напишите здесь условия гарантии. Напишите здесь условия гарантии.

  • Напишите здесь условия гарантии.
  • Напишите здесь условия гарантии.
  • Напишите здесь условия гарантии.

Напишите здесь условия гарантии. Напишите здесь условия гарантии.

  • Напишите здесь условия гарантии.
  • Напишите здесь условия гарантии.
  • Напишите здесь условия гарантии.
  • Напишите здесь условия гарантии.
{/if}
{* *} {capture assign=otherJS} {echoVar from=otherJS} {/capture} {$otherJS = $otherJS scope=global} {* *} {$title = $product->meta_title|default:$product->model|default:'' scope=global} {* *} {else} {include 'missing_template.htm'} {/if} {/strip}