Unhandled Error!
Trying to get property of non-object
Document |
store:product |
Document type |
CMS partial |
Line |
3 |
Exception class |
Cms_ExecutionException |
Code Highlight
<?
// Gets the parent category from the list of associated categorys
$prodcats = $product->category_list;
foreach($prodcats as $int=>$prodcat){
if($int == 0){
$cattitle = $prodcat->title;
$catdesc = $prodcat->short_description;
}
}
?>
<div class="pagehead" style="background:url(<?= theme_resource_url('images/product/pagehead.jpg') ?>)">
<a href="/bespoke_tailoring" class="grid-17 indent">Tailoring Service<span>Bespoke Tailoring At Savile Row</span></a>
# |
Document |
Type |
2 |
store:product |
CMS partial |
1 |
Product |
CMS page |