toutpratique/override/controllers/front/MyAccountController.php
2015-08-12 10:53:32 +02:00

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);
}
}