Unhandled Error!
Trying to get property of non-object
Document |
shop:product:images |
Document type |
CMS partial |
Line |
1 |
Exception class |
Cms_ExecutionException |
Code Highlight
<? if ($product->images->count): ?>
<div class="images cf">
<?
$large = $thumb = array();
foreach ($product->images as $image) {
$large[] = $image->getThumbnailPath(460, 380);
$thumb[] = $image->getThumbnailPath(138, 110);
}
?>
<img src="<?= array_shift($large) ?>" rel="<?= array_shift($thumb) ?>">
<? if (count($large)): ?>
<p>Additional Views</p>
<div class="additional">
# |
Document |
Type |
3 |
shop:product:images |
CMS partial |
2 |
shop:product |
CMS partial |
1 |
Product |
CMS page |