How to show categories image? (Built-in Categories module)
Posted: Wed Dec 13, 2017 7:07 pm
Hello,
After these changes I see my subcategories images. But..
Under this:
Added this:
And small addition to category.tpl file
Now I want to use an information page and I wish to see all first level categories here. The built-in module Category is good for that. But I don't see any images in there. I made the same changes in .tpl file (extensions/module/category.tpl). At least it says that THUMB is undefined.
What changes do I need to make in controller/extensions/module/category.php or somewhere else to see those images as well?
After these changes I see my subcategories images. But..
Code: Select all
catalog/controller/product/category.php
Code: Select all
'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url)
Code: Select all
,'thumb' => $this->model_tool_image->resize($result['image'], $this->config->get($this->config->get('config_theme') . '_image_category_width'), $this->config->get($this->config->get('config_theme') . '_image_category_height'))
Code: Select all
<?php if ($category['thumb']) { ?><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /><?php }
What changes do I need to make in controller/extensions/module/category.php or somewhere else to see those images as well?