Answer the question
In order to leave comments, you need to log in
You need to embed this code into a .tpl file (using PHP). Who can teach or show how to write it correctly and correctly?
There is HTML markup for the menu, you need to write it correctly using PHP code for a tpl file on OpenCart
<div class="container">
<div id="nav-menu">
<ul>
<li class="parent"><a href='#'>Игрушки для всех</a>
<ul>
<li><a href='#'>Девочкам 5 лет</a></li>
<li><a href='#'>Девочкам 9 лет</a></li>
<li><a href='#'>Девушкам в подарок</a></li>
<li><a href='#'>Мальчикам 5 лет</a></li>
<li><a href='#'>Мальчикам 9 лет</a></li>
</ul>
</li>
<li><a href='#'>Куклы-игрушки</a></li>
<li><a href='#'>Подушка-игрушка</a></li>
<li><a href='#'>Смайлы игрушки</a></li>
<li><a href='#'>Шитые игрушки</a></li>
<li><a href='#'>Зверушки игрушки</a>
<ul>
<li><a href='#'>Мягкая игрушка бабочка</a></li>
<li><a href='#'>Мягкая игрушка осьминог</a></li>
<li><a href='#'>Мягкие игрушки зайцев</a></li>
<li><a href='#'>Мягкие игрушки котов</a></li>
<li><a href='#'>Мягкие игрушки лиса</a></li>
<li><a href='#'>Мягкие игрушки лошади</a></li>
<li><a href='#'>Мягкие игрушки мишек</a></li>
</ul>
</li>
<li><a href='#'>Каталог игрушек</a></li>
</ul>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
I didn’t quite understand what you need to do,
but try before this code that close the php tag on html ?>
Then paste your html code and open it again<?php
Go freelancing and ask me to pull a template for you if you don't know php yourself.
Isn't it easier to add all the necessary categories and subcategories through the admin panel ???
What you propose to do is to put a piece of static html into a dynamic .tpl, as if it’s not a cake and generally darkness and violates the architecture .... It turns out that you will see a bunch of rubbish on all category pages, which can only be changed by hand in the code (which is just awful for content creators and managers who will run this store).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question