A
A
aukly2022-02-21 16:50:48
opencart
aukly, 2022-02-21 16:50:48

OpenCart how to add new menu item?

Good afternoon. There is such a menu 621398983e473593620541.jpeg
How can I add a drop-down list between the catalog and about us????

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rst0, 2022-02-22
@Rst0

the standard template creates a menu in the controller file
catalog/controller/common/menu.php
then displays it in view
catalog/view/template/common/menu.twig
but you have a non-standard one, you need to look in ITS
view folder how the layout is built, then in the controller
add your items to the $data array.
and view will draw them according to the template.
You may also need to correct the view , for example, it is not designed for two drop-downs.
Well, there is also an option that you can add in the admin, but it depends on the authors of the template.
You only have a picture - there is nothing more to say from it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question