Search the Community
Showing results for tags 'main menu'.
Found 2 results
-
Привет! я хочу сделать это меню Opencart 1.5.6 вместо категорий меню, чтобы отобразить продукты. http://demo.abantecart.com/ мне удалось получить продукты в меню так: "catalog/controller/common/header.php" before $children = $this->model_catalog_category->getCategories($category['category_id']); add if ($this->model_catalog_category->getCategories($category['category_id'])) { before // Level 1 add } else { $dataProduct = array( 'filter_category_id' => $category['category_id'], 'filter_sub_category' => true ); $children = $this->model_catalog_product->getProducts($dataProduct); foreach ($children as $child ) { $children_data [] = array( 'name' => $child['name'], 'href' => $this->url->link('product/product', 'product_id=' . $child['product_id']), ); } } ... И мои варианты здесь... Это редактирует динамическое изменение изображений в Abantecart, но я не могу трансформируются работать в Opencart https://github.com/abantecart/abantecart-src/commit/14124cf15118562712e2a706139e4576c0091aae Пожалуйста, помогите мне ...
-
я хочу чтобы в главном меню выводились пунктами статьи из блока Информация, но только те которые не выводятся в футере (чекбокс отражать в футере отчекнут). для этого в header.tpl добавила: <ul> <?php foreach ($informations as $information) { ?> <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li> <?php } ?> </ul> для этого в header.php добавила: $this->load->model('catalog/information'); $this->data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $this->data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } сейчас выводятся в главное меню пункты которые в футере как я понимаю за это отвечает if ($result['bottom']) Вопрос: как переписать это выражение, чтобы выводилось то, что не в футере? (это мое первое соприкосновение с php)