AbanteCart Community

AbanteCart Development => Customization help => Topic started by: quekbhj on September 03, 2013, 01:25:43 PM

Title: variable name for login name
Post by: quekbhj on September 03, 2013, 01:25:43 PM
Hi

I am using default_html5 template.

I am trying to modify the activation notification mail so that it can display the customer's login name.
May I know the variable/field name that is being used for this login name?

Thank you
Jasmine
Title: Re: variable name for login name
Post by: abantecart on September 03, 2013, 09:40:06 PM
In any account page/controller you can access customer class to get customer details:

Code: [Select]
$this->data['customer_name'] = $this->customer->getFirstName();
or
$this->data['customer_name'] = $this->customer->getLastName();


See this controller for example:
storefront/controller/pages/account/account.php
Title: Re: variable name for login name
Post by: quekbhj on September 05, 2013, 09:18:00 AM
Thank you