[-] FO: Fix #PSCFV-5143

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17916 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-23 08:29:24 +00:00
parent 666e2cc940
commit 016d7ab78e
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ class MyAccountControllerCore extends FrontController
$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'))
'voucherAllowed' => (int)CartRule::isFeatureActive(),
'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN')
));
$this->context->smarty->assign('HOOK_CUSTOMER_ACCOUNT', Hook::exec('displayCustomerAccount'));