public function getCategoryId() { return $this->CategoryId ? $this->CategoryId : StoreConfigManager::getCategoryId(); }