set_data('GET', $_GET); $applicationBottomExtenderComponent->init_page(); $coo_mn_menu_boxes_control = MainFactory::create_object('MenuBoxesContentControl', [ $GLOBALS['coo_template_control'], $applicationBottomExtenderComponent->get_page() ]); $coo_mn_menu_boxes_control->set_('account_type', $_SESSION['account_type'] == '0' ? '0' : null); $coo_mn_menu_boxes_control->set_('c_path', $GLOBALS['cPath']); $coo_mn_menu_boxes_control->set_('category_id', $GLOBALS['cID'] ?? 0); $coo_mn_menu_boxes_control->set_('customer_id', $_SESSION['customer_id'] ?? null); $coo_mn_menu_boxes_control->set_('request_type', $GLOBALS['request_type']); $coo_mn_menu_boxes_control->set_('coo_product', $GLOBALS['product']); $coo_mn_menu_boxes_control->set_('coo_xtc_price', $GLOBALS['xtPrice']); $coo_mn_menu_boxes_control->proceed(); $coo_listing_control = MainFactory::create_object('ProductListingContentControl'); $coo_listing_control->set_data('GET', $_GET); $coo_listing_control->set_data('POST', $_POST); $coo_listing_control->set_('coo_mn_data_container', $coo_mn_menu_boxes_control); $coo_listing_control->set_('c_path', $GLOBALS['cPath']); $coo_listing_control->set_('cat', $_GET['cat'] ?? null); $coo_listing_control->set_('categories_id', $GLOBALS['cID'] ?? 0); $coo_listing_control->set_('coo_filter_manager', $_SESSION['coo_filter_manager']); $coo_listing_control->set_('coo_product', $GLOBALS['product']); $coo_listing_control->set_('currency_code', $_SESSION['currency']); $coo_listing_control->set_('current_category_id', $GLOBALS['current_category_id']); $coo_listing_control->set_('current_page', basename($GLOBALS['PHP_SELF'])); $country = isset($_GET['customer_country_id']) ? $_SESSION['customer_country_id'] : STORE_COUNTRY; $zone = isset($_GET['customer_zone_id']) ? $_SESSION['customer_zone_id'] : STORE_ZONE; $coo_listing_control->set_('customer_country_id', $country); $coo_listing_control->set_('customer_zone_id', $zone); $coo_listing_control->set_('customers_fsk18_display', $_SESSION['customers_status']['customers_fsk18_display']); $coo_listing_control->set_('customers_status_id', $_SESSION['customers_status']['customers_status_id']); $coo_listing_control->set_('filter_fv_id', $_GET['filter_fv_id'] ?? null); $coo_listing_control->set_('filter_id', $_GET['filter_id'] ?? null); $coo_listing_control->set_('filter_price_min', $_GET['filter_price_min'] ?? null); $coo_listing_control->set_('filter_price_max', $_GET['filter_price_max'] ?? null); $coo_listing_control->set_('feature_categories_id', $_GET['feature_categories_id'] ?? null); $coo_listing_control->set_('show_graduated_prices', !empty($_SESSION['customers_status']['customers_status_graduated_prices'])); $coo_listing_control->set_('languages_id', $_SESSION['languages_id']); if (!isset($_SESSION['last_listing_sql'])) { $_SESSION['last_listing_sql'] = ''; } $coo_listing_control->reference_set_('last_listing_sql', $_SESSION['last_listing_sql']); $coo_listing_control->set_('listing_count', $_GET['listing_count'] ?? null); $coo_listing_control->set_('listing_sort', $_GET['listing_sort'] ?? null); if (!empty($_GET['manufacturers_id'])) { $coo_listing_control->set_('manufacturers_id', $_GET['manufacturers_id']); } if (!empty($_GET['page'])) { $coo_listing_control->set_('page_number', (int)$_GET['page']); } $coo_listing_control->set_('sort', $_GET['sort'] ?? null); $coo_listing_control->set_('value_conjunction', $_GET['value_conjunction'] ?? null); $coo_listing_control->set_('view_mode', $_GET['view_mode'] ?? null); $coo_listing_control->set_('show_price_tax', $_SESSION['customers_status']['customers_status_show_price_tax']); $coo_listing_control->proceed(); $t_redirect_url = $coo_listing_control->get_redirect_url(); if (empty($t_redirect_url) === false) { xtc_redirect($t_redirect_url); } else { $t_main_content = $coo_listing_control->get_response(); } /** @var LayoutContentControl $coo_layout_control */ $coo_layout_control = MainFactory::create_object('LayoutContentControl'); $coo_layout_control->set_('coo_mn_data_container', $coo_mn_menu_boxes_control); $coo_layout_control->set_data('GET', $_GET); $coo_layout_control->set_data('POST', $_POST); $coo_layout_control->set_('category_id', $GLOBALS['cID'] ?? 0); $coo_layout_control->set_('coo_breadcrumb', $GLOBALS['breadcrumb']); $coo_layout_control->set_('coo_product', $GLOBALS['product']); $coo_layout_control->set_('coo_xtc_price', $GLOBALS['xtPrice']); $coo_layout_control->set_('c_path', $GLOBALS['cPath']); $coo_layout_control->set_('main_content', $t_main_content); $coo_layout_control->set_('request_type', $GLOBALS['request_type']); $coo_layout_control->proceed(); $t_redirect_url = $coo_layout_control->get_redirect_url(); if (empty($t_redirect_url) === false) { xtc_redirect($t_redirect_url); } else { echo $coo_layout_control->get_response(); }