I'm using Opencart Version 3.0.2.0, and need to display image/thumb on sub category page.
Tray to change file ...\catalog\controller\product\category.php
after
Code: Select all
'name'=> $result['name'],
Code: Select all
'image'=> $this->model_tool_image->resize($result['image'], 80,80),
after
Code: Select all
{% for category in categories %}
<li><a href="{{ category.href }}">{{ category.name }}</a></li>
{% endfor %}
Code: Select all
{% for category in categories %}
{% if thumb %}
<div class="col-sm-3"><img src="{{ thumb }}" alt="{{ heading_title }}" title="{{ heading_title }}" class="img-thumbnail" /></div>
{% endif %}
<li><a href="{{ category.href }}">{{ category.name }}</a></li>
{% endfor %}
Anyone?