[-] 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:
@@ -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'))
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user