context->customer->getAddresses($this->context->language->id); $addresses = array(); foreach ($addresses_raw as $detail) { $address = new Address($detail['id_address']); $addresses[] = AddressFormat::getFormattedLayoutData($address); unset($address); } $this->context->smarty->assign('addresses', $addresses); } }