$item = new nc_netshop_item($resMsg);
$netshop->goodslist_recent->add($f_RowID, $classID);
?>
= nc_browse_path_range(-1, $sub_level_count-2, $GLOBALS['browse_path']); ?>
= $item['Vendor']; ?> = $item['Name']; ?>
= $item['Type']; ?>
for ($i = 1; $i <= 5; $i++): ?>
$rate = $item['RateCount'] ? $item['RateTotal'] / $item['RateCount'] : 0;
$class_name = 'icon-star';
if ($rate < $i && $rate > ($i - 1)) { $class_name .= '-half-alt'; }
else if ($rate < $i) { $class_name .= '-empty'; }
$star_title = "Поставить оценку «$i»";
?>
endfor; ?>
if ($admin_mode): // блок с элементами интерфейса управления ?>
= $f_AdminButtons ?>
if ($variant_fields) { echo nc_netshop_item_variant_admin_table($item); } ?>
endif; ?>
if (is_array($item['Slider']->records)): ?>
foreach ($item['Slider']->records as $record): ?>

endforeach; ?>
endif; ?>
if ($item['Details']): ?>
Подробное описание
= $item['Details'] ?>
endif; // if $item[Details] ?>
$property_fields = $nc_core->get_component($classID)->get_fields_by_name_prefix('Property_');
$properties = array();
foreach ($property_fields as $f) {
$property_value = $item[$f['name']];
if (is_scalar($property_value) && !strlen($property_value)) {
continue;
}
if (is_array($property_value)) {
$property_value = join(', ', $property_value);
}
if ($f['type'] == NC_FIELDTYPE_BOOLEAN) {
$property_value = $property_value ? 'да' : 'нет';
}
$properties[$f['description']] = $property_value;
}
$num_properties = count($properties);
?>
if ($num_properties): ?>
Детальные характеристики
$num_columns = 2;
$per_column = ceil($num_properties / $num_columns);
$i = 0;
foreach ($properties as $property_description => $property_value) {
if ($i && $i % $per_column == 0) { echo '
'; }
echo '| ' . $property_description . ' | ' . $property_value . ' |
';
++$i;
}
?>
endif; // if $num_properties ?>
if (nc_module_check_by_keyword('comments')): ?>
$nc_comments = new nc_comments($cc);
$nc_comments_object_id = $f_Parent_Message_ID ? $f_Parent_Message_ID : $f_RowID;
$nc_comments_count = $nc_comments->count($nc_comments_object_id);
?>
endif; // comments ?>
if ($request_type != 'get_variant') {
if ($accessories_component_id) {
echo $nc_core->widget->generate('netshop_accessories', array('Accessories_Component_ID' => $accessories_component_id));
}
$widget_variables = array('Component_ID' => $item['Class_ID'], 'Item_ID' => $item['_Variants']->each('get', 'Message_ID'));
echo $nc_core->widget->generate('netshop_bought_together', $widget_variables);
echo $nc_core->widget->generate('netshop_viewed_together', $widget_variables);
echo $nc_core->widget->generate('netshop_special_offer', array('Component_ID' => $item['Class_ID'], 'Item_ID' => $item['Message_ID']));
}
?>
Отзывы = $nc_comments_count ? "($nc_comments_count)" : "" ?>
Отзывы покупателей
Оставить отзыв