D
D
Dmitry2016-04-20 11:25:25
opencart
Dmitry, 2016-04-20 11:25:25

How to make a Parent Category Output for the entire product group?

It is necessary that in each product a block with a parent category is displayed.
for example we have Cafe - pizzas - pizza1
you need pizza1 to have a block with description from Cafe
how can I call the parent category ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Evgrafovich, 2016-04-20
@sonics

look at the category and category_description tables. In the first parent_id - the key of the parent category (you will have to iterate until you reach the category with parent_id = 0), in the second, the descriptions are stored. do you know mvc? No - for freelancing, yes - edit the model/catalog/category.php model and the controller/product/category.php controller and display the resulting description in the view of your template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question