Post by elbeer » Tue Mar 28, 2017 5:30 am

I keep getting this error on Viewing a Category and no images are showing in the thumbnails:

PHP Notice: Array to string conversion in XXX/catalog/view/theme/default/template/product/category.tpl on line 101

The code is this:

Code: Select all

         <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
From file:category.tpl

Opencart Version: Version 2.3.0.2

I believe it is this: <?php echo $product['thumb']; ?> but I can not figure out a fix for it.

Any help would be appeciated.

Newbie

Posts

Joined
Wed May 25, 2016 6:41 am
Who is online

Users browsing this forum: No registered users and 14 guests