Post by rigltd » Tue Oct 23, 2018 5:09 pm

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

Newbie

Posts

Joined
Mon Oct 22, 2018 3:35 pm

Post by xxvirusxx » Wed Oct 24, 2018 12:25 am

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: SohBH and 268 guests