[-] FO: Fix #PSCFV-5143

This commit is contained in:
rGaillard
2012-10-23 08:29:24 +00:00
parent 0eafc88cbd
commit 22b8a891cc
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'));