Hello, I'm trying to show a product but I'm getting the following error: Trying to get property of non-object /home/vagrant/Code/dimona-october/public/plugins/tiipiik/catalog/components/ProductDetails.php line 50 http://snag.gy/wQDeJ.jpg
I've dug into the source code and fixed it:
$this->product = $this->page['product'] = $loadProduct;
//here $this->product is NULL
if I change the source code from:
$this->product = $this->page['product'] = $loadProduct;
$this->page->title = $this->product->title;
$this->page->description = $this->product->description;
to:
$this->product = $this->page['product'] = $loadProduct;
$this->page->title = $loadProduct->title;
$this->page->description = $loadProduct->description;
Everything works, but since I'm new to October I'm afraid this might break future updates.
Any idea why this is happening?
thanks