} $subcats = array(); // current cat if ($parent_id > 0) { $str = "SELECT * from tx_multishop_categories c, tx_multishop_categories_description cd where c.status=1 and c.categories_id='" . addslashes($parent_id) . "' and cd.language_id='" . $this->sys_language_uid . "' and c.page_uid='" . $this->showCatalogFromPage . "' and c.categories_id=cd.categories_id"; $qry = $GLOBALS['TYPO3_DB']->sql_query($str); $current = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry); } else { // default root has no current category. this is a bad query (bas) //$str="SELECT * from tx_multishop_categories c, tx_multishop_categories_description cd where c.status=1 and c.parent_id='".$parent_id."' and cd.language_id='".$this->sys_language_uid."' and c.page_uid='".$this->showCatalogFromPage."' and c.categories_id=cd.categories_id"; } // first check if the meta_title exists $display_listing = false; if ($current['categories_id']) { if ($current['custom_settings']) { mslib_fe::updateCustomSettings($current['custom_settings']); } if ($current['meta_title']) { $meta_title = $current['meta_title']; } else { $meta_title = $current['categories_name']; $meta_title = $meta_title . $this->ms['MODULES']['PAGE_TITLE_DELIMETER'] . $this->ms['MODULES']['STORE_NAME']; } if ($current['meta_description']) { $meta_description = $current['meta_description']; } else { $meta_description = ''; } if ($current['meta_keywords']) { $meta_keywords = $current['meta_keywords']; } else {
} } } } } } if (is_numeric($this->get['products_id'])) { // overwrite multishop settings loaded from the product $product = mslib_fe::getProduct($this->get['products_id'], $this->get['categories_id'], 'p.custom_settings', 1, 1); if ($product['custom_settings']) { mslib_fe::updateCustomSettings($product['custom_settings']); } } // overwrite multishop settings loaded from the content element if ($this->customSettings) { mslib_fe::updateCustomSettings($this->customSettings); } // overwrite multishop settings loaded from the content element eof if (!$this->conf['admin_template_folder']) { $this->conf['admin_template_folder'] = 'admin_multishop'; } // reset the fileadmin admin folder to local plugin location if (!$this->conf['search_page_pid']) { $this->conf['search_page_pid'] = $this->shop_pid; } if (!$this->conf['shoppingcart_page_pid']) { $this->conf['shoppingcart_page_pid'] = $this->shop_pid; } if (!$this->conf['products_detail_page_pid']) { $this->conf['products_detail_page_pid'] = $this->shop_pid; }