Здравствуйте ещё раз. Как только удалил с меню категории "Услуги" субкатегрии и оставил там только статистические страницы, то меню перестало выпадать.
Реально как то сделать чтобы категория увидела что мы туда впихнули две стат. страницы?
Но может я ещё не так код вставил, потому что не особо понимаю где заканчивается цикл. Вот как сейчас:
<nav class="nav-container" role="navigation">
<div class="nav-inner">
<!-- ======= Menu Code START ========= -->
{% if categories %}
<!-- Opencart 3 level Category Menu-->
<div id="menu" class="main-menu">
{# <div class="nav-responsive"><span>Меню</span><div class="expandable"></div></div> #}
<ul class="nav navbar-nav">
<li class="top_level home"> <a href="{{ action_default }}"><svg width="26px" height="26px"> <use xlink:href="#dmj-hgift"></use></svg></a></li>
{% for category in categories %}
{% if category.children %}
<li class="top_level dropdown"><a href="{{ category.href }}">{{ category.name }}</a>
<div class="dropdown-menu megamenu column{{ category.column }}">
<div class="dropdown-inner">
{% for children in category.children|batch(category.children|length / category.column|round(1, 'ceil')) %}
<ul class="list-unstyled childs_1">
{% if category.cat_id == '25' %}
<li><a href="https://lisadecor-shop.ru/index.php?route=information/information&information_id=7">Дизайн и оклейка</a></li>
<li><a href="https://lisadecor-shop.ru/index.php?route=information/information&information_id=8">Выезд на декор мероприятий</a></li>
{% endif %}
{% for child in children %}
<!-- 2 Level Sub Categories START -->
{% if child.childs %}
<li class="dropdown"><a href="{{ child.href }}">{{ child.name }}</a>
<div class="dropdown-menu">
<div class="dropdown-inner">
{% for childs_col in child.childs|batch(child.childs|length / child.column|round(1, 'ceil')) %}
<ul class="list-unstyled childs_2">
{% for childs_2 in childs_col %}
<li><a href="{{ childs_2.href }}">{{ childs_2.name }}</a></li>
{% endfor %}
</ul>
{% endfor %}
</div>
</div>
</li>
{% else %}
<li><a href="{{ child.href }}">{{ child.name }}</a></li>
{% endif %}
<!-- 2 Level Sub Categories END -->
{% endfor %}
</ul>
{% endfor %}
</div>
</div>
</li>
{% else %}
<li class="top_level"><a href="{{ category.href }}">{{ category.name }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
</div>
<!-- =============================================== Mobile menu start ============================================= -->
<div id="res-menu" class="main-menu nav-container1">
<div class="nav-responsive"><span>{{ text_menu }}</span><div class="expandable"></div></div>
<ul class="main-navigation">
{% for category in categories %}
<li class="top_level dropdown"><a href="{{ category.href }}">{{ category.name }}</a>
{% if category.children %}
{% for children in category.children|batch(category.children|length / category.column|round(1, 'ceil')) %}
<ul>
{% for child in children %}
{% if child.childs %}
<li>
<a href="{{ child.href }}">{{ child.name }}</a>
{% for childs_col in child.childs|batch(child.childs|length / child.column|round(1, 'ceil')) %}
<ul class="list-unstyled childs_2">
{% for childs_2 in childs_col %}
<li><a href="{{ childs_2.href }}">{{ childs_2.name }}</a></li>
{% endfor %}
</ul>
{% endfor %}
</li>
{% else %}
<li><a href="{{ child.href }}">{{ child.name }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</nav>