[-] FO : BugFix : #PSTEST-190 : adding a link to create an address in the "my-account" page, if a customer hasn't filled any addresses

This commit is contained in:
vChabot
2012-01-11 13:45:03 +00:00
parent df79dd792b
commit 0141bc28c7
3 changed files with 21 additions and 24 deletions
@@ -44,7 +44,9 @@ class MyAccountControllerCore extends FrontController
*/
public function initContent()
{
$has_address = $this->context->customer->getAddresses($this->context->language->id);
$this->context->smarty->assign(array(
'has_customer_an_address' => empty($has_address),
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN'))
));