Any idea how to do that?
Thank you very much. I appreciate your help!
find
Code: Select all
$data['language'] = $this->load->controller('common/language');
Code: Select all
$this->load->model('catalog/manufacturer');
$manufacturers = $this->model_catalog_manufacturer->getManufacturers();
foreach ($manufacturers as $manufacturer) {
$data['categories'][] = array(
'name' => $manufacturer['name'],
'children' => array(),
'column' => 1,
'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $manufacturer['manufacturer_id'])
);
}
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
could you please visit : proprehrana.eu and see what happens with that code. You must have missunderstood the question. I want them brands to appear on dropdown if users clicks on collumn "znamke" on the right.viethemes wrote:To do that you can open file catalog/controller/common/header.php
findand add below code before that lineCode: Select all
$data['language'] = $this->load->controller('common/language');
Code: Select all
$this->load->model('catalog/manufacturer'); $manufacturers = $this->model_catalog_manufacturer->getManufacturers(); foreach ($manufacturers as $manufacturer) { $data['categories'][] = array( 'name' => $manufacturer['name'], 'children' => array(), 'column' => 1, 'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $manufacturer['manufacturer_id']) ); }
Thanks for your input!
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
Users browsing this forum: No registered users and 153 guests