Display a list of all attributes in opencart

Posted by Catalin Dragos Vladulescu on Stack Overflow See other posts from Stack Overflow or by Catalin Dragos Vladulescu
Published on 2012-09-24T13:46:20Z Indexed on 2012/12/18 5:03 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

I want to display a list of all attributes that are added into database but every time I try something it doesn't work. I want to show this inside a div from the from the front page. I tried to insert this into featured.tpl:

<?php 
foreach ($attribute_groups as $attribute_group) {
echo $attribute_group['name'];
print_r($attribute_group);
echo '<select name="listaGrupe">';
foreach ($attribute_groups['attribute'] as $attribute) {
echo '<option value="'.$attribute.'">'.$attribute.'</option>';
}
echo '</select>';
}

?>

© Stack Overflow or respective owner

Related posts about php

Related posts about list