protected function _getAddr(Address $address) { return array("first_name" => $address->firstname, "last_name" => $address->lastname, "phone" => $address->phone, "alt_phone" => $address->phone_mobile, "street" => $address->address1, "address_addition" => $address->address2, "city" => $address->city, "state" => State::getNameById($address->id_state), "country" => CountryCore::getIsoById($address->id_country), "zip" => $address->postcode); }
/** * Returns country iso from context. */ private function getCountryIso() { return \CountryCore::getIsoById(\Configuration::get('PS_COUNTRY_DEFAULT')); }