in the file /catalog/view/theme/default/template/product/category.tpl

 <?php if ($categories) { ?> <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> <?php foreach ($categories as $category) { ?> <?php echo $category['name']; ?> <?php } ?> </ul> <?php } ?> 

I can not find a place where the $categories array is formed. As now in the array id subcategory is not transmitted ...

Tell me how to get the id subcategories when sorting the $categories array?

    1 answer 1

    Understood.

    In /catalog/controller/product/category.php

    After

     'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url), 

    Added by

     'category_id' => $result['category_id']