catalogue->get_current('Catalogue_ID'); $sql = "SELECT `Message_ID` FROM `Message{$component_id}` AS m " . "LEFT JOIN `Sub_Class` AS sc ON m.`Sub_Class_ID` = sc.`Sub_Class_ID` " . "WHERE sc.`Catalogue_ID` = {$site_id} AND m.`Checked` = 1 AND m.`Parent_Message_ID` = 0"; $item_ids = nc_db()->get_col($sql); if (count($item_ids)) { echo '
', '

## Аксессуары

', '
'; foreach ($item_ids as $item_id) { echo nc_core::get_object()->widget->generate('netshop_item', array( 'Component_ID' => $component_id, 'Item_ID' => $item_id, )); } echo '
'; }