In categorie I would like to show the thumb of the child category if available.
In theme/*/template/product/category.twig I ve made this changes :
<div class="row">{% for category in categories|batch((categories|length / 4)|round(1, 'ceil')) %}
<div class="col-sm-3">
<ul>
{% for child in category %}
<li>
{% if thumb %}
<div class="col-sm-2"><img src="{{ thumb }}" alt="{{ child.name }}" title="{{ child.name }}" class="img-thumbnail" /></div>
<br>{% endif %}
<a href="{{ child.href }}">{{ child.name }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}</div>
It doesn't work, I think the thumbnail name isn't correct or does the image have to be placed in a special map. When checking the code afterwards on the site :
" <div class="col-sm-3">
<ul>
<li>
<br>"
Any suggestions ?
Regards
Did you refreshed ocmod, clear vqmod cache if you have, clear theme cache, SASS cache?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Who is online
Users browsing this forum: SohBH and 268 guests