Answer the question
In order to leave comments, you need to log in
How can I display product attributes in the OpenCart 2.3 admin panel?
Hello, how can I display attributes instead of a model in the product list?
I tried to do it like this:
I added it to the array in the product
'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']),
<?php if($product['attribute_groups']) { ?>
<?php foreach($product['attribute_groups'] as $attribute_group) { ?>
<?php foreach($attribute_group['attribute'] as $attribute) { ?>
<div class="description--attribute-name"><?php echo $attribute['name']; ?></div>
<?php } ?>
<?php } ?>
<?php } ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question