Hi, i'm trying to add category auto-filter in category.php.
In first case result is category ID's (but I want to show category names).
In second case it shows me nothing.
Thanks in advance
In first case result is category ID's (but I want to show category names).
<?php $categories = $this->params->get('categories');
foreach($categories as $category) : ?>
<li class="button"><a href="#" data-filter=".<?php echo $category; ?>"><?php echo $category; ?></a></li>
<?php endforeach; ?>In second case it shows me nothing.
<?php $categories = $this->params->get('categories');
foreach($categories as $category) : ?>
<li class="button"><a href="#" data-filter=".<?php echo $category->name; ?>"><?php echo $category->name; ?></a></li>
<?php endforeach; ?>Thanks in advance