Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Overexposure

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

Overexposure's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. Если кому интересно. В этом меню, во всяком случае под мои задачи, меня раздражало поле с выводом названия главной категории. Мне вполне достаточно было ее название в пункте меню. В итоге я убил ее и как выводится у меня сейчас можно посмотреть на сайте http://cluboftea.ru/ Чтобы было как у меня на сайте надо чтобы код в файле MEGAmenu.php был ниже следующий! <div class="menu"> <?php $this->load->model('catalog/category'); $this->load->model('tool/image'); $categories_1 = $this->model_catalog_category->getCategories(0); if ($categories_1) {$output = '<ul id="topnav">';} foreach ($categories_1 as $category_1) { $output .= '<li>'; $testPath = $base.'image/'; $picCat = $this->model_tool_image->resize($category_1['image'], 80, 80); $unrewritten = $this->url->link('product/category', 'path=' . $category_1['category_id']); $output .= '<a href="'.($unrewritten).'">' . $category_1['name'] . '</a>'; $categories_2 = $this->model_catalog_category->getCategories($category_1['category_id']); if ($categories_2) {$output .= '<ul class="children"></a></h3></li>';} foreach ($categories_2 as $category_2) { $subTestPath = $base.'image/'; if ($category_2['image']) { $picSubCat = $this->model_tool_image->resize($category_2['image'], 40, 40); } else { $picSubCat = $base.'image/no_image.jpg'; }; $output .= '<li>'; $sub_unrewritten = $this->url->link('product/category', 'path=' . $category_1['category_id'] . '_' . $category_2['category_id']); $output .= '<a href="'.($sub_unrewritten).'"><img src="'.$picSubCat.'" alt="' . $category_2['name'].'"/><span>' . $category_2['name'] . '</span></a>'; $categories_3 = $this->model_catalog_category->getCategories($category_2['category_id']); if ($categories_3) {$output .= '<ul class="children2">';} foreach ($categories_3 as $category_3) { $output .= '<li>'; $third_sub_unrewritten = $this->url->link('product/category', 'path=' . $category_1['category_id'] . '_' . $category_2['category_id'] . '_' . $category_3['category_id']); $output .= '<a href="'.($third_sub_unrewritten).'">'.$category_3['name'].'</a>'; $output .= '</li>'; } if ($categories_3) {$output .= '</ul>';} $output .= '</li>'; } if ($categories_2) {$output .= '</ul>';} $output .= '</li>'; } if ($categories_1) {$output .= '</ul>';} echo $output; ?> </div>
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.