/* Служебная часть */ for ($f_RowNum = 0; $f_RowNum < $rowCount; $f_RowNum++) { if($fetch_row[$f_RowNum] instanceof Iterator) { extract($fetch_row[$f_RowNum]->to_array(), EXTR_PREFIX_ALL, "f"); } else { extract($fetch_row[$f_RowNum], EXTR_PREFIX_ALL, "f"); } foreach($iteration_RecordTemplate[$f_RowNum] as $value) { extract($value); } !isset($cc_env["convert2txt"]) ? $cc_env["convert2txt"] = null : null; eval($cc_env["convert2txt"]); ob_start(); /* Конец служебной части */?> 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; } $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 (!empty($template_partial_loading) && $item->price_depends_on_user_data()) { header('X-Accel-Expires: 0'); } $comment_count = $get_comment_count($item['Message_ID']); ?>