Answer the question
In order to leave comments, you need to log in
How to display attributes in categories and modules in opencart 3?
Good day.
Tell me how to display attributes in categories and other pages (modules, search, etc.) in opencart 3.
I would be very grateful for your help.
Answer the question
In order to leave comments, you need to log in
in the cycle of receiving goods, for example, the file catalog/controller/product/category.php,
look for the line
$data['products']
and write
'attributes_groups' => $this->model_catalog_product->getProductAttributes($result['product_id') into the array ]),
after, display in the template
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question