23 lines
518 B
PHP
23 lines
518 B
PHP
<?php
|
|
|
|
class MyAccountController extends MyAccountControllerCore
|
|
{
|
|
|
|
public function initContent()
|
|
{
|
|
parent::initContent();
|
|
|
|
$addresses_raw = $this->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);
|
|
}
|
|
}
|
|
|