page->set_h1($item['FullName']); $is_in_stock = $item['Checked'] && ($netshop->get_setting('IgnoreStockUnitsValue') || $item['StockUnits'] > 0); $is_in_cart = $netshop->cart->has_item($item); $is_in_compare_list = empty($template_partial_loading) && $netshop->goodslist_compare->check($item['Message_ID'], $item['Class_ID']); $is_in_fav_list = empty($template_partial_loading) && $netshop->goodslist_favorite->check($item['Message_ID'], $item['Class_ID']); $has_discount = (bool)$item['ItemDiscount']; if ($is_in_cart) { $item_in_cart = $netshop->cart->get_items()->get_item_by_id($item['Class_ID'], $item['Message_ID']); $qty_in_cart = $item_in_cart['Qty']; } else { $qty_in_cart = 0; } $add_to_cart_url = $netshop->get_add_to_cart_url(); $compare_url = !$is_in_compare_list ? $netshop->goodslist_compare->get_add_action_url($item['Message_ID'], $item['Class_ID']) : $netshop->goodslist_compare->get_remove_action_url($item['Message_ID'], $item['Class_ID']); $favorite_url = !$is_in_fav_list ? $netshop->goodslist_favorite->get_add_action_url($item['Message_ID'], $item['Class_ID']) : $netshop->goodslist_favorite->get_remove_action_url($item['Message_ID'], $item['Class_ID']); // запрет кэширования страницы сервером, если цена или скидки зависят от пользователя if ($template_partial_loading && $item->price_depends_on_user_data()) { header('X-Accel-Expires: 0'); } // Подключение скрипта загрузки информации о вариантах (расположено вне .tpl-variable-part) $selectors = new nc_netshop_item_variant_selector($item, array_keys($variant_fields)); echo $selectors->init(array( 'updated_regions' => '.tpl-variable-part, .tpl-block-admin', 'on_update' => 'init_fotorama();', )); $has_comments_module = false && nc_module_check_by_keyword('comments'); if ($has_comments_module) { $nc_comments = new nc_comments($cc); $nc_comments_object_id = $f_Parent_Message_ID ?: $f_RowID; $comment_count = $nc_comments->count($nc_comments_object_id); } else { $comment_count = 0; } $properties = array(); $property_fields = $nc_core->get_component($classID)->get_fields_by_name_prefix('Property_'); 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 ? 'да' : 'нет'; } if ($property_value) { $properties[$f['description']] = $property_value; } } if ($item['Weight']) { $properties['Вес в упаковке'] = $item['Weight'] . ' г'; } if ($item['PackageSize1']) { $sizes = array($item['PackageSize1'], $item['PackageSize2'], $item['PackageSize3']); $properties['Размер упаковки'] = implode(' × ', $sizes) . ' см'; } ?>
count()) { $img_list = array_merge($img_list, $item['Slider']->records); } $thumb_width = 84; $thumb_height = 84; ?>
Тип
Производитель
1): ?> $variant_field_options): ?> by_template($variant_field_name, array( 'prefix' => "
", 'first' => "" . htmlspecialchars($variant_field_options['placeholder']) . "", 'active' => "%NAME", 'active_link' => "%NAME", 'unactive' => "%NAME", 'suffix' => "
", 'divider' => "\n", )); ?>
count()): ?>
Товара нет в наличии

Описание товара

Характеристики

$value): ?>

Отзывы $comment_count" : '' ?>

wall($nc_comments_object_id) ?>

Отзывов об этом товаре пока нет.

Напишите отзыв о товаре

user->get_by_id($AUTH_USER_ID) : null; ?>