Здравствуйте уважаемые форумчане!
Делаю микроразметку simpla, но возникли трудности, не пойму куда вставлять <span itemprop="price">, я ставлю в <div class="price"><!--price-block-wrp-->
{if $product->variant->compare_price|convert}
<span class="old_price nowrap">{$product->variant->compare_price|convert}</span> {$currency->sign|escape}.
{/if}<br>
<span class="new_price nowrap">{$product->variant->price|convert}</span>
<sup>{$currency->sign|escape}.</sup>
</div>
Но в какое бы место не поставил, гугл валидатор микроразметки выдает ошибку "Свойство price недопустимо для объекта типа Product."
Вот полностью код:
{* Страница товара *}
<div itemscope itemtype="http://schema.org/Product">
{* Канонический адрес страницы *}
{$canonical="/products/{$product->url}" scope=parent}
<div class="boxed-area blocks-spacer">
<div class="container">
<div class="row">
<div class="span12">
<ul class="breadcrumb">
<li>Главная</li>
{foreach from=$category->path item=cat}
<li><span class="dev"> / </span></li>
<li>{$cat->name|escape}</li>
{/foreach}
{if $brand}
<li><span class="dev"> / </span></li>
<li>{$brand->name|escape}</li>
{/if}
<li><span class="dev"> / </span></li>
<li><span class="this">{$product->name|escape}</span></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="span12">
<span itemprop="name"><h1 data-product="{$product->id}">{$product->name|escape}</h1></span>
<hr class="main-underline" />
</div>
</div>
<div class=" top-equal blocks-spacer">
<div class="row blocks-spacer">
<div class="span6">
<div class="product-preview">
{if $product->image}
<div class="picture">
{*стикеры*}
{if $product->variant->compare_price > 0}
<div class="skidka">Скидка: {floor(abs(100-{$product->variant->price}/($product->variant->compare_price)*100))}%</div>
{/if}
{if $product->variant->price > 400}
<div class="freeshipping">Бесплатная доставка</div>
{/if}
{if $product->variant->stock < 5 && $product->variant->stock > 0}
<div class="endcount">Товар заканчивается</div>
{/if}
{*//стикеры*}
<img src="{$product->image->filename|resize:470:470}" alt="{$product->name|escape}" title="{$product->name|escape}" id="mainPreviewImg" />
</div>
{/if}
{if $product->images|count>1}
<div class="thumbs clearfix">
{foreach $product->images as $i=>$image}
<div class="thumb{if $image@first} active{/if}">
<img src="{$image->filename|resize:470:470}" alt="{$product->name|escape}" title="{$product->name|escape}"/>
</div>
{/foreach}
</div>
{/if}
</div>
</div>
<div class="span6">
<div class="poduct_prop_rcol_top"><!-- form start-->
<form action="/cart" class="form form-inline clearfix variants" novalidate>
<div class="row">
<div class="span2 sku">
<span >
Артикул: <strong>{if $product->variant->sku}{$product->variant->sku}{/if}</strong>
</span>
</div>
<div class="span2">
<div style="display: block; width:150px; height:15px;"><!--quantity-block-wrp-->
{if $product->variant->stock > 0}
<span class="propuct_quantity global_stores_full">Есть в наличии</span>
{else}
<span class="propuct_quantity global_stores_empty preorderlabel">Предзаказ</span>
{/if}
</div>
<div class="price"><!--price-block-wrp-->
{if $product->variant->compare_price|convert}
<span class="old_price nowrap">{$product->variant->compare_price|convert}</span> {$currency->sign|escape}.
{/if}<br>
<span class="new_price nowrap"><span itemprop="price">{$product->variant->price|convert}</span>
<sup>{$currency->sign|escape}.</sup>
</div>
</div>
<div class="span2">
{if $product->variant->stock > 0}
<input type="submit" class="buy" value="купить" data-result-text="добавлено">
{else}
<input type="submit" class="buy" value="предзаказ" data-result-text="добавлено"/>
{/if}
</div>
</div>
<hr style="display: block; width: 482px; height: 5px; background: #0490e5; margin-top: 5px;"/>
<div class="row">
<div class="product_param_ch"> <!--top-block 2 -wrp-->
<div class="numbered">
<div style="float: left; margin-top: 5px; margin-left: 10px; margin-right: 10px;">Количество: </div>
<div class="clickable remove-one minus_button"></div>
<input type="text" name="amount" value="1" maxlength="2" class="amountint tiny-size" />
<div class="clickable add-one plus_button"></div>
</div>
<div class="quickorder-wrp" >
{if $product->variant->stock > 0}
<span>Быстрый заказ</span>
{else}
<span class="preorder-dostavka-label">доставка 7-14 дней</span>
{/if}
</div>
<select name="variant" class="selvar span2" {if $product->variants|count==1 || !$product->variant->name}style='display:none;'{/if}>
{foreach $product->variants as $v}
<option value="{$v->id}" {if $v->compare_price}data-compprice="{$v->compare_price|convert}"{/if} data-price="{$v->price|convert}">{$v->name}</option>
{/foreach}
</select>
<div id="quickbuyModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Быстрый заказ</h3>
</div>
<div class="modal-body">
<div id="oneclick" class="form feedback_form" method="post" style="width: 88%;">
<p class="reset-margin-padding callbacklines"></p>
<p style="text-align: center; width: 232px;">Вы заказываете: <br><strong>{$product->name|escape|rtrim}</strong></p>
<div style="clear:both"></div>
<input type="hidden" name="message" value="Заказ товара: {$product->name|escape|rtrim}" data-format=".+" class="input-text" style=""/>
<div style="clear:both"></div>
<label>*Ваше имя:</label>
<input required type="text" name="name" value="{$comment_name}" data-format=".+" data-notice="Введите имя" id="nickname_field_quickbuyModal" class="onename input-text" /><br/>
<div style="clear:both"></div>
<label>*Ваш номер телефона:</label>
<input required pattern="[0-9_-]{10}" placeholder="(___) ___ __ __" data-format=".+" data-notice="Введите номер телефона" id="phone_num" name="phone" maxlength="255" type="text" class="phone_num onephone input-text"/>
<div style="clear:both"></div>
<a class="oneclickbuy blue-button-q" id="qb-blue-button" style="width: 232px !important;" >Заказать товар</a>
</div>
</div>
</div>
</div>
</div> <!-- /row2 -->
</form>
</div> <!-- /form -->
<div class="share42init" data-url="{$config->root_url}{url}" data-title="{$product->name|escape}"></div>
<div class="row no-margin teloffer">
Заказать по телефону: (063) 076-66-66
</div>
{*дополнительное меню*}
<div class="row no-margin">
<div class="row no-margin">
<div class="span " >
<div class="row no-margin">
<img src="design/tasa/images/quality-icon.png" alt="Качество" title="Качество" ></div>
<div class="row no-margin">Качество</div>
</div>
<div class="span no-margin" >
<div class="row no-margin">
<img src="design/tasa/images/shipping-icon.png" alt="Доставка" title="Доставка"></div>
<div class="row no-margin">Доставка</div>
</div>
<div class="span no-margin" >
<div class="row no-margin">
<img src="design/tasa/images/money-icon.png" alt="Оплата" title="Оплата"></div>
<div class="row no-margin">Оплата</div>
</div>
<div class="span no-margin">
<div class="row no-margin">
<img src="design/tasa/images/return-icon.png" alt="Обмен" title="Обмен" ></div>
<div class="row no-margin">Обмен</div>
</div>
<div class="testi_icon span no-margin">
<div class="row no-margin">
<img src="design/{$settings->theme}/images/testimon_icon.png" alt="Отзывы" title="Отзывы">
</div>
<div class="row no-margin">Отзывы</div>
<p class="comments_count">{$comments|count}</p>
</div>
</div>
</div>
{* //дополнительное меню*}
{if $product->features}
<div class="poduct_detail_properties">
<h6>Характеристики</h6>
<table class="gruptable">
<tbody>
{foreach $product->features as $f}
<tr class="propertydata">
<td valign="top" class="first">{$f->name}</td>
<td valign="top" class="second">{$f->value}</td>
</tr>
{/foreach}
</table>
</div>
{/if}
{if $product->annotation}
<div class="product-description"><h6>Краткое описание товара</h6>{$product->annotation}</div>
{/if}
{* Связанные товары *}
{if $related_products}
<div class="related_products clearfix">
<h6>Другие варианты данного товара:</h6>
<!-- Список каталога товаров-->
<ul class="tiny_products">
{foreach $related_products as $related_product}
<!-- Товар-->
<li class="product">
<!-- Фото товара -->
{if $related_product->image}
<div class="image">
<img src="{$related_product->image->filename|resize:100:100}" alt="{$related_product->name|escape}" title="{$related_product->name|escape}" />
</div>
{/if}
<!-- Фото товара (The End) -->
<!-- Название товара
<h3><a data-product="{$related_product->id}" href="products/{$related_product->url}">{$related_product->name|escape}</a></h3>
Название товара (The End) -->
</li>
<!-- Товар (The End)-->
{/foreach}
</ul>
</div>
{/if}
</div> <!-- // правая колонка span6 -->
</div>
{if $product->body}
<div class="span12">
<span itemprop="description"><div class="row">
<h2>Описание товара.</h2>
{$product->body}
</div>
</div></span>
{/if}
<div class="span12">
<div class="row">
<ul id="myTab" class="nav nav-tabs">
<li{if !$error} id="testimonians" class="active"{/if}>Отзывы о данном товаре</li>
<li>Рекомендуемые товары</li>
</ul>
<div class="tab-content">
<div class="fade tab-pane in active" id="tab-1">
<section id="comments" class="comments-container">
{if $comments}
{foreach $comments as $comment}
<div class="single-comment clearfix">
<div class="avatar-container">
<img src="design/{$settings->theme}/images/avatar_dummy.gif" alt="avatar" class="avatar" title="avatar" />
</div>
<div class="comment-content">
<div class="comment-inner">
<cite class="author-name">
<span class="light">{$comment->name|escape}</span>{if !$comment->approved}, ожидает модерации{/if}
</cite>
<div class="metadata">
{$comment->date|date}, {$comment->date|time}
</div>
<div class="comment-text">
{$comment->text|escape|nl2br}
</div>
</div>
</div>
</div>
{/foreach}
{/if}
<h4 class="push-down-25"><span class="light">Добавить отзыв</span></h4>
<form id="commentform" method="post" class="form form-inline form-comments">
{if $error}
<div class="alert alert-danger in fade">
<button type="button" class="close" data-dismiss="alert">×</button>
{if $error=='captcha'}
Неверно введена капча
{elseif $error=='empty_name'}
Введите имя
{elseif $error=='empty_comment'}
Введите отзыв
{/if}
</div>
<script>
$(document).ready(function (){
scroll2error();
})
</script>
{/if}
<p class="push-down-20">
<input type="text" aria-required="true" tabindex="1" size="30" id="comment_name" name="name" value="{$comment_name}" required/>
<label for="comment_name">Имя<span class="red-clr bold">*</span></label>
</p>
<p class="push-down-20" style="position: relative">
<img src="captcha/image.php?{math equation='rand(10,10000)'}" alt='captcha' style="position: absolute; max-height: 33px; top: 2px; left: 161px; border-radius: 3px"/>
<input type="text" aria-required="true" tabindex="2" size="30" id="comment_captcha" name="captcha_code" value="" required/>
<label for="captcha_code">Число<span class="red-clr bold">*</span></label>
</p>
<p class="push-down-20">
<textarea class="input-block-level" tabindex="3" rows="7" cols="70" id="comment" name="text" placeholder="Ваш коментарий ..." required>{$comment_text}</textarea>
</p>
<p>
<input class="btn btn-primary bold" type="submit" tabindex="4" name="comment" id="submit" value="Отправить" />
</p>
</form>
</section>
</div>
<div class="fade tab-pane" id="tab-2">
{get_featured_products var=featured_products order='RAND()' limit=15}
{if $featured_products}
<div class="cat_blck row" style="width: 960px;">
<ul>
{foreach $featured_products as $product}
<li>
<div class="product">
<div class="cat_blck-item-simple" >
<div class="cat_blck-item_inner">
<div class="cat_blck-item-pic-wrp">
<div class="cat_blck-item-picture">
{if $product->image}
<span class="image">
{if $product->variant->compare_price > 0}
<div class="skidka-cat">Скидка: {floor(abs(100-{$product->variant->price}/($product->variant->compare_price)*100))}%</div>
{/if}
{if $product->variant->price > 400}
<div class="freeshipping-cat">Бесплатная доставка</div>
{/if}
{if $product->variant->stock < 5 && $product->variant->stock > 0}
<div class="endcount-cat">Товар заканчивается</div>
{/if}
<img src="{$product->image->filename|resize:205:164}" alt="{$product->name|escape}" title="{$product->name|escape}" />
</span>
{else}
<span class="image">
<img alt="{$product->name|escape}" src="design/{$settings->theme|escape}/images/no-image.png" title="{$product->name|escape}">
</span>
{/if}
</div>
</div>
<div class="cat_blck-item-name"><a data-product="{$product->id}" href="products/{$product->url}" title="{$product->name|escape}">{$product->name|escape}</a></div>
<!-- наличие-->
<div class="cat_blck-item-botter-quantity">
{if $product->variant->stock > 0}
<span class="propuct_quantity global_stores_full">Есть в наличии</span>
{else}
<span class="propuct_quantity global_stores_empty preorderlabel">Предзаказ</span>
{/if}
</div>
<!-- end наличие-->
<span class="new_price">{$product->variant->price|convert}<sup>{$currency->sign|escape}.</sup></span>
<!-- в корзину-->
{if $product->variant->stock > 0}
<div class="img-overlay{if $product->variants|count > 1} with_select{/if}">
<form class="variants" action="/cart">
<select name="variant" class="span2" style="display:none;">
{foreach $product->variants as $v}
<option value="{$v->id}" {if $v->compare_price > 0}data-compare_price="{$v->compare_price|convert}"{/if} data-price="{$v->price|convert}">{$v->name}</option>
{/foreach}
</select>
<span class="btn_buy">
<input type="submit" class="buy" value="купить" data-result-text="добавлено"/>
</span>
</form>
</div>
{else}
<div class="img-overlay{if $product->variants|count > 1} with_select{/if}">
<form class="variants" action="/cart">
<select name="variant" class="span2" style="display:none;">
{foreach $product->variants as $v}
<option value="{$v->id}" {if $v->compare_price > 0}data-compare_price="{$v->compare_price|convert}"{/if} data-price="{$v->price|convert}">
{if $v->name}
{$v->name}
{else}
{$product->name|escape}
{/if}
</option>
{/foreach}
</select>
<span class="btn_buy">
<input type="submit" class="buy" value="предзаказ" data-result-text="добавлено"/>
</span>
</form>
</div>
{/if}
</div>
</div>
</div>
</li>
{/foreach}
<div class="clear"></div>
</ul>
</div>
{/if}
</div>
</div>
</div>
</div><!-- /row-->
</div>
</div>
</div>
{literal}
<script>
$(document).ready(function(){
$('body,html').animate({scrollTop: 220}, 300);
});
</script>
{/literal}
Делаю микроразметку simpla, но возникли трудности, не пойму куда вставлять <span itemprop="price">, я ставлю в <div class="price"><!--price-block-wrp-->
{if $product->variant->compare_price|convert}
<span class="old_price nowrap">{$product->variant->compare_price|convert}</span> {$currency->sign|escape}.
{/if}<br>
<span class="new_price nowrap">{$product->variant->price|convert}</span>
<sup>{$currency->sign|escape}.</sup>
</div>
Но в какое бы место не поставил, гугл валидатор микроразметки выдает ошибку "Свойство price недопустимо для объекта типа Product."
Вот полностью код:
{* Страница товара *}
<div itemscope itemtype="http://schema.org/Product">
{* Канонический адрес страницы *}
{$canonical="/products/{$product->url}" scope=parent}
<div class="boxed-area blocks-spacer">
<div class="container">
<div class="row">
<div class="span12">
<ul class="breadcrumb">
<li>Главная</li>
{foreach from=$category->path item=cat}
<li><span class="dev"> / </span></li>
<li>{$cat->name|escape}</li>
{/foreach}
{if $brand}
<li><span class="dev"> / </span></li>
<li>{$brand->name|escape}</li>
{/if}
<li><span class="dev"> / </span></li>
<li><span class="this">{$product->name|escape}</span></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="span12">
<span itemprop="name"><h1 data-product="{$product->id}">{$product->name|escape}</h1></span>
<hr class="main-underline" />
</div>
</div>
<div class=" top-equal blocks-spacer">
<div class="row blocks-spacer">
<div class="span6">
<div class="product-preview">
{if $product->image}
<div class="picture">
{*стикеры*}
{if $product->variant->compare_price > 0}
<div class="skidka">Скидка: {floor(abs(100-{$product->variant->price}/($product->variant->compare_price)*100))}%</div>
{/if}
{if $product->variant->price > 400}
<div class="freeshipping">Бесплатная доставка</div>
{/if}
{if $product->variant->stock < 5 && $product->variant->stock > 0}
<div class="endcount">Товар заканчивается</div>
{/if}
{*//стикеры*}
<img src="{$product->image->filename|resize:470:470}" alt="{$product->name|escape}" title="{$product->name|escape}" id="mainPreviewImg" />
</div>
{/if}
{if $product->images|count>1}
<div class="thumbs clearfix">
{foreach $product->images as $i=>$image}
<div class="thumb{if $image@first} active{/if}">
<img src="{$image->filename|resize:470:470}" alt="{$product->name|escape}" title="{$product->name|escape}"/>
</div>
{/foreach}
</div>
{/if}
</div>
</div>
<div class="span6">
<div class="poduct_prop_rcol_top"><!-- form start-->
<form action="/cart" class="form form-inline clearfix variants" novalidate>
<div class="row">
<div class="span2 sku">
<span >
Артикул: <strong>{if $product->variant->sku}{$product->variant->sku}{/if}</strong>
</span>
</div>
<div class="span2">
<div style="display: block; width:150px; height:15px;"><!--quantity-block-wrp-->
{if $product->variant->stock > 0}
<span class="propuct_quantity global_stores_full">Есть в наличии</span>
{else}
<span class="propuct_quantity global_stores_empty preorderlabel">Предзаказ</span>
{/if}
</div>
<div class="price"><!--price-block-wrp-->
{if $product->variant->compare_price|convert}
<span class="old_price nowrap">{$product->variant->compare_price|convert}</span> {$currency->sign|escape}.
{/if}<br>
<span class="new_price nowrap"><span itemprop="price">{$product->variant->price|convert}</span>
<sup>{$currency->sign|escape}.</sup>
</div>
</div>
<div class="span2">
{if $product->variant->stock > 0}
<input type="submit" class="buy" value="купить" data-result-text="добавлено">
{else}
<input type="submit" class="buy" value="предзаказ" data-result-text="добавлено"/>
{/if}
</div>
</div>
<hr style="display: block; width: 482px; height: 5px; background: #0490e5; margin-top: 5px;"/>
<div class="row">
<div class="product_param_ch"> <!--top-block 2 -wrp-->
<div class="numbered">
<div style="float: left; margin-top: 5px; margin-left: 10px; margin-right: 10px;">Количество: </div>
<div class="clickable remove-one minus_button"></div>
<input type="text" name="amount" value="1" maxlength="2" class="amountint tiny-size" />
<div class="clickable add-one plus_button"></div>
</div>
<div class="quickorder-wrp" >
{if $product->variant->stock > 0}
<span>Быстрый заказ</span>
{else}
<span class="preorder-dostavka-label">доставка 7-14 дней</span>
{/if}
</div>
<select name="variant" class="selvar span2" {if $product->variants|count==1 || !$product->variant->name}style='display:none;'{/if}>
{foreach $product->variants as $v}
<option value="{$v->id}" {if $v->compare_price}data-compprice="{$v->compare_price|convert}"{/if} data-price="{$v->price|convert}">{$v->name}</option>
{/foreach}
</select>
<div id="quickbuyModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Быстрый заказ</h3>
</div>
<div class="modal-body">
<div id="oneclick" class="form feedback_form" method="post" style="width: 88%;">
<p class="reset-margin-padding callbacklines"></p>
<p style="text-align: center; width: 232px;">Вы заказываете: <br><strong>{$product->name|escape|rtrim}</strong></p>
<div style="clear:both"></div>
<input type="hidden" name="message" value="Заказ товара: {$product->name|escape|rtrim}" data-format=".+" class="input-text" style=""/>
<div style="clear:both"></div>
<label>*Ваше имя:</label>
<input required type="text" name="name" value="{$comment_name}" data-format=".+" data-notice="Введите имя" id="nickname_field_quickbuyModal" class="onename input-text" /><br/>
<div style="clear:both"></div>
<label>*Ваш номер телефона:</label>
<input required pattern="[0-9_-]{10}" placeholder="(___) ___ __ __" data-format=".+" data-notice="Введите номер телефона" id="phone_num" name="phone" maxlength="255" type="text" class="phone_num onephone input-text"/>
<div style="clear:both"></div>
<a class="oneclickbuy blue-button-q" id="qb-blue-button" style="width: 232px !important;" >Заказать товар</a>
</div>
</div>
</div>
</div>
</div> <!-- /row2 -->
</form>
</div> <!-- /form -->
<div class="share42init" data-url="{$config->root_url}{url}" data-title="{$product->name|escape}"></div>
<div class="row no-margin teloffer">
Заказать по телефону: (063) 076-66-66
</div>
{*дополнительное меню*}
<div class="row no-margin">
<div class="row no-margin">
<div class="span " >
<div class="row no-margin">
<img src="design/tasa/images/quality-icon.png" alt="Качество" title="Качество" ></div>
<div class="row no-margin">Качество</div>
</div>
<div class="span no-margin" >
<div class="row no-margin">
<img src="design/tasa/images/shipping-icon.png" alt="Доставка" title="Доставка"></div>
<div class="row no-margin">Доставка</div>
</div>
<div class="span no-margin" >
<div class="row no-margin">
<img src="design/tasa/images/money-icon.png" alt="Оплата" title="Оплата"></div>
<div class="row no-margin">Оплата</div>
</div>
<div class="span no-margin">
<div class="row no-margin">
<img src="design/tasa/images/return-icon.png" alt="Обмен" title="Обмен" ></div>
<div class="row no-margin">Обмен</div>
</div>
<div class="testi_icon span no-margin">
<div class="row no-margin">
<img src="design/{$settings->theme}/images/testimon_icon.png" alt="Отзывы" title="Отзывы">
</div>
<div class="row no-margin">Отзывы</div>
<p class="comments_count">{$comments|count}</p>
</div>
</div>
</div>
{* //дополнительное меню*}
{if $product->features}
<div class="poduct_detail_properties">
<h6>Характеристики</h6>
<table class="gruptable">
<tbody>
{foreach $product->features as $f}
<tr class="propertydata">
<td valign="top" class="first">{$f->name}</td>
<td valign="top" class="second">{$f->value}</td>
</tr>
{/foreach}
</table>
</div>
{/if}
{if $product->annotation}
<div class="product-description"><h6>Краткое описание товара</h6>{$product->annotation}</div>
{/if}
{* Связанные товары *}
{if $related_products}
<div class="related_products clearfix">
<h6>Другие варианты данного товара:</h6>
<!-- Список каталога товаров-->
<ul class="tiny_products">
{foreach $related_products as $related_product}
<!-- Товар-->
<li class="product">
<!-- Фото товара -->
{if $related_product->image}
<div class="image">
<img src="{$related_product->image->filename|resize:100:100}" alt="{$related_product->name|escape}" title="{$related_product->name|escape}" />
</div>
{/if}
<!-- Фото товара (The End) -->
<!-- Название товара
<h3><a data-product="{$related_product->id}" href="products/{$related_product->url}">{$related_product->name|escape}</a></h3>
Название товара (The End) -->
</li>
<!-- Товар (The End)-->
{/foreach}
</ul>
</div>
{/if}
</div> <!-- // правая колонка span6 -->
</div>
{if $product->body}
<div class="span12">
<span itemprop="description"><div class="row">
<h2>Описание товара.</h2>
{$product->body}
</div>
</div></span>
{/if}
<div class="span12">
<div class="row">
<ul id="myTab" class="nav nav-tabs">
<li{if !$error} id="testimonians" class="active"{/if}>Отзывы о данном товаре</li>
<li>Рекомендуемые товары</li>
</ul>
<div class="tab-content">
<div class="fade tab-pane in active" id="tab-1">
<section id="comments" class="comments-container">
{if $comments}
{foreach $comments as $comment}
<div class="single-comment clearfix">
<div class="avatar-container">
<img src="design/{$settings->theme}/images/avatar_dummy.gif" alt="avatar" class="avatar" title="avatar" />
</div>
<div class="comment-content">
<div class="comment-inner">
<cite class="author-name">
<span class="light">{$comment->name|escape}</span>{if !$comment->approved}, ожидает модерации{/if}
</cite>
<div class="metadata">
{$comment->date|date}, {$comment->date|time}
</div>
<div class="comment-text">
{$comment->text|escape|nl2br}
</div>
</div>
</div>
</div>
{/foreach}
{/if}
<h4 class="push-down-25"><span class="light">Добавить отзыв</span></h4>
<form id="commentform" method="post" class="form form-inline form-comments">
{if $error}
<div class="alert alert-danger in fade">
<button type="button" class="close" data-dismiss="alert">×</button>
{if $error=='captcha'}
Неверно введена капча
{elseif $error=='empty_name'}
Введите имя
{elseif $error=='empty_comment'}
Введите отзыв
{/if}
</div>
<script>
$(document).ready(function (){
scroll2error();
})
</script>
{/if}
<p class="push-down-20">
<input type="text" aria-required="true" tabindex="1" size="30" id="comment_name" name="name" value="{$comment_name}" required/>
<label for="comment_name">Имя<span class="red-clr bold">*</span></label>
</p>
<p class="push-down-20" style="position: relative">
<img src="captcha/image.php?{math equation='rand(10,10000)'}" alt='captcha' style="position: absolute; max-height: 33px; top: 2px; left: 161px; border-radius: 3px"/>
<input type="text" aria-required="true" tabindex="2" size="30" id="comment_captcha" name="captcha_code" value="" required/>
<label for="captcha_code">Число<span class="red-clr bold">*</span></label>
</p>
<p class="push-down-20">
<textarea class="input-block-level" tabindex="3" rows="7" cols="70" id="comment" name="text" placeholder="Ваш коментарий ..." required>{$comment_text}</textarea>
</p>
<p>
<input class="btn btn-primary bold" type="submit" tabindex="4" name="comment" id="submit" value="Отправить" />
</p>
</form>
</section>
</div>
<div class="fade tab-pane" id="tab-2">
{get_featured_products var=featured_products order='RAND()' limit=15}
{if $featured_products}
<div class="cat_blck row" style="width: 960px;">
<ul>
{foreach $featured_products as $product}
<li>
<div class="product">
<div class="cat_blck-item-simple" >
<div class="cat_blck-item_inner">
<div class="cat_blck-item-pic-wrp">
<div class="cat_blck-item-picture">
{if $product->image}
<span class="image">
{if $product->variant->compare_price > 0}
<div class="skidka-cat">Скидка: {floor(abs(100-{$product->variant->price}/($product->variant->compare_price)*100))}%</div>
{/if}
{if $product->variant->price > 400}
<div class="freeshipping-cat">Бесплатная доставка</div>
{/if}
{if $product->variant->stock < 5 && $product->variant->stock > 0}
<div class="endcount-cat">Товар заканчивается</div>
{/if}
<img src="{$product->image->filename|resize:205:164}" alt="{$product->name|escape}" title="{$product->name|escape}" />
</span>
{else}
<span class="image">
<img alt="{$product->name|escape}" src="design/{$settings->theme|escape}/images/no-image.png" title="{$product->name|escape}">
</span>
{/if}
</div>
</div>
<div class="cat_blck-item-name"><a data-product="{$product->id}" href="products/{$product->url}" title="{$product->name|escape}">{$product->name|escape}</a></div>
<!-- наличие-->
<div class="cat_blck-item-botter-quantity">
{if $product->variant->stock > 0}
<span class="propuct_quantity global_stores_full">Есть в наличии</span>
{else}
<span class="propuct_quantity global_stores_empty preorderlabel">Предзаказ</span>
{/if}
</div>
<!-- end наличие-->
<span class="new_price">{$product->variant->price|convert}<sup>{$currency->sign|escape}.</sup></span>
<!-- в корзину-->
{if $product->variant->stock > 0}
<div class="img-overlay{if $product->variants|count > 1} with_select{/if}">
<form class="variants" action="/cart">
<select name="variant" class="span2" style="display:none;">
{foreach $product->variants as $v}
<option value="{$v->id}" {if $v->compare_price > 0}data-compare_price="{$v->compare_price|convert}"{/if} data-price="{$v->price|convert}">{$v->name}</option>
{/foreach}
</select>
<span class="btn_buy">
<input type="submit" class="buy" value="купить" data-result-text="добавлено"/>
</span>
</form>
</div>
{else}
<div class="img-overlay{if $product->variants|count > 1} with_select{/if}">
<form class="variants" action="/cart">
<select name="variant" class="span2" style="display:none;">
{foreach $product->variants as $v}
<option value="{$v->id}" {if $v->compare_price > 0}data-compare_price="{$v->compare_price|convert}"{/if} data-price="{$v->price|convert}">
{if $v->name}
{$v->name}
{else}
{$product->name|escape}
{/if}
</option>
{/foreach}
</select>
<span class="btn_buy">
<input type="submit" class="buy" value="предзаказ" data-result-text="добавлено"/>
</span>
</form>
</div>
{/if}
</div>
</div>
</div>
</li>
{/foreach}
<div class="clear"></div>
</ul>
</div>
{/if}
</div>
</div>
</div>
</div><!-- /row-->
</div>
</div>
</div>
{literal}
<script>
$(document).ready(function(){
$('body,html').animate({scrollTop: 220}, 300);
});
</script>
{/literal}