/** * Retrieve customer country identifier * * @return int */ public function getCountryId() { $countryId = $this->getFormData()->getCountryId(); if ($countryId) { return $countryId; } return parent::getCountryId(); }
/** * Return the country Id. * * @return int|null|string */ public function getCountryId() { if ($countryId = $this->getAddress()->getCountryId()) { return $countryId; } return parent::getCountryId(); }