D
D
Den Savi2018-08-18 14:02:11
opencart
Den Savi, 2018-08-18 14:02:11

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

1 answer(s)
Z
zoozag, 2018-08-18
@zoozag

If you mean displaying subcategories above products, then you need to correct the category request in the category controller. Ask for all current category for 62.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question