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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12352 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-01-11 13:45:03 +00:00
parent 6e2a3be4d7
commit 83ad81fcf0
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'))
));