public function getCanonicalUrl() { if ($this->product && $this->product->hasLoaded()) { return $this->product->getSlug(); } return ''; }