I
I
insanel2018-12-04 22:31:29
opencart
insanel, 2018-12-04 22:31:29

How to display product categories on the main page in opencart3?

The template is standard
It is necessary to publish product categories in the form of a grid on the main page, plz tell me how to do it
If the modules are free and exactly on 3.0.2.0 If
through the code, then it will be even more interesting
I know where to get the name of requests, for example, to the name of a category, its picture and a brief description. Knowing these parameters, it is possible that I could do it myself, but I do not rummage in php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Polos, 2018-12-05
@insanel

Take as a basis admin/view/extension/module/category.twig Here is the output layout of the Category module, from the standard set of OC modules.
It is best to change the modifier. As for the admin panel, in the Modules / Extensions section, find the Categories module and enable it, then in the Design -> Layouts section, find the Home layout and add the Categories module in the required column, do not forget to click on + when choosing a module and then save from the top right.
To see all changes in the Status Bar at the top right, click Developer Options and disable the cache.
PS You can copy the categories module and rename everything you need to create your own module, which you can then edit directly, and you are not afraid that something will be lost from the update, and you won’t have to bother with modifiers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question