public function fullTitle() { $title = ''; if ($this->sku) { $title .= $this->sku . ' - '; } $title .= $this->name; if ($this->variant) { $title .= ' - ' . $this->variant; } if ($this->option) { $title .= ' - ' . $this->option; } return $title; }