Answer the question
In order to leave comments, you need to log in
How to customize the opencart menu?
I have a main category "catalog" on the site, when I go to the directory, the category looks like this - index.php?route=product/category&path=62. And it perfectly displays all the categories that I added.
If I go further into one of these categories, the url takes on the following form - /category&path=62_90 and all categories disappear, how to fix this problem?
<?php if ($categories) { ?>
<ul class="categories">
<?php foreach ($categories as $category) { ?>
<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
<?php } ?>
</ul>
<?php } ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question