M
M
Mikhail Zavalko2017-09-16 17:26:52
PHP
Mikhail Zavalko, 2017-09-16 17:26:52

How to display all products on the main page of OpenCart 2.3?

Hello. Such a question, found answers only for previous versions of OpenCart. I need a display on the main page of all available products, because there is only one category and even the menu on the site is not planned. Is there any correct way to implement this idea? Moreover, it is clear that I am not the only one who asks such a question, but more often all recommendations come down to a simple one: "add to the recommended ones." It would be desirable to learn the decision without crutches. Thanks in advance)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-09-18
@Mixa_007

You can display all the products on the main page, but it will take longer than through the recommended ones and again there will be a crutch. Since there will be models and controllers and views, they will be rewritten.

Z
zoozag, 2017-09-18
@zoozag

In general, the task is to display products on the main page by the id of the category you need.
To do this, you will need to copy the part of the code responsible for displaying products from the product/category controller to the common/home controller, but with minor edits.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question