Finding this error in the OpenCart Error Log and not knowing what is causing it.
PHP Notice: Undefined index: description in .../vqmod/vqcache/vq2-catalog_view_theme_margaretha_template_product_product.tpl on line 484
The code:
<?php foreach ($products as $product) { ?>
<!-- line 484 -->
<div class="box-desc"><?php echo $product['description']; ?></div>
<?php } ?>
We see the products and descriptions in the database table but can't see why the error is coming up.
var_dump($products)
. check if index'description'
really exists, or it has more levels inside.var_dump
it and add it on the question – user1978142