Answer the question
In order to leave comments, you need to log in
Opencart, fucking attributes?
There is no code that outputs
<?php if($product['attribute_groups']) { ?>
<table class="responsive">
<?php foreach($product['attribute_groups'] as $attribute_group) { ?>
<thead>
<tr>
<th><?php echo $attribute['name']; ?></th>
</tr>
</thead>
<?php foreach($attribute_group['attribute'] as $attribute) { ?>
<tbody>
<tr>
<td><?php echo $attribute['text']; ?></td>
</tr>
<?php } ?>
</tbody>
<?php } ?>
</table>
<?php } ?>
<th><?php echo $attribute['name']; ?></th>
Answer the question
In order to leave comments, you need to log in
And why do you have the $attribute variable located above the place where it is defined, do it like this:
<?php if($product['attribute_groups']) { ?>
<table class="responsive">
<?php foreach($product['attribute_groups'] as $attribute_group) { ?>
<?php foreach($attribute_group['attribute'] as $attribute) { ?>
<thead>
<tr>
<th><?php echo $attribute['name']; ?></th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo $attribute['text']; ?></td>
</tr>
<?php } ?>
</tbody>
<?php } ?>
</table>
<?php } ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question