Код вывода списка производителей - Webmasters.ru - RSS http://webmasters.ru/forum/showthread.php?t=56371 SEO форум вебмастеров - Поисковые системы, оптимизация, раскрутка сайта, оптимизация и продвижение сайта в поисковых системах 1745005089 Elesite CMS 60 http://webmasters.ru/forum/images/wm/misc/rss.png SEO форум вебмастеров Webmasters.ru http://webmasters.ru/forum Код вывода списка производителей by 3s777 http://webmasters.ru/forum/showpost.php?p=591386 Sat, 05 Apr 2014 20:24:18 GMT Подскажите, кто специалист по opencart, каким кодом я могу вывести список производителей в любом нужном мне месте шаблона? Заранее спасибо! Код вывода списка производителей by koven http://webmasters.ru/forum/showpost.php?p=591402 Sat, 05 Apr 2014 21:36:46 GMT Модуль есть http://opencartforum.com/files/file/1165-%D1%81%D0%BF%D0%B8%D1%81%D0%BE%D0%BA-%D0%BF%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%BE%D0%B4%D0%B8%D1%82%D0%B5%D0%BB%D0%B5%D0%B9/ У тебя какой Опен? этот к ocStore 1.5.3 точно подходит. Код вывода списка производителей by 3s777 http://webmasters.ru/forum/showpost.php?p=592012 Mon, 07 Apr 2014 16:37:37 GMT koven, спасибо, но модуль не подходит. Кому интересно реализовать это можно так. В файле catalog/controller/common/header.php после строки if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/header.tpl')) { прописать $this->data['text_manufacturer'] = $this->language->get('text_manufacturer'); $this->data['href_manufacturer'] = $this->url->link('product/manufacturer'); $data = array(); $this->load->model('catalog/manufacturer'); $this->data['manufacturer'] = array(); $manufacturers = $this->model_catalog_manufacturer->getManufacturers($data); if($manufacturers){ foreach($manufacturers as $manufacturer){ $this->data['manufacturer'][] = array( 'name' => $manufacturer['name'], 'href' => $this->url->link('product/manufacturer/product', 'manufacturer_id='.$manufacturer['manufacturer_id']) ); }} и в нужном вам месте в шаблоне выводите config->get('config_template') . '/template/common/header.tpl')) { прописать $this->data['text_manufacturer'] = $this->language->get('text_manufacturer'); $this->data['href_manufacturer'] = $this->url->link('product/manufacturer'); $data = array(); $this->load->model('catalog/manufacturer'); $this->data['manufacturer'] = array(); $manufacturers = $this->model_catalog_manufacturer->getManufacturers($data); if($manufacturers){ foreach($manufacturers as $manufacturer){ $this->data['manufacturer'][] = array( 'name' => $manufacturer['name'], 'href' => $this->url->link('product/manufacturer/product', 'manufacturer_id='.$manufacturer['manufacturer_id']) ); }} и в нужном вам месте в шаблоне выводите
  • Бренды
    ]]>