Author Topic: variable name for login name  (Read 1992 times)

Offline quekbhj

  • Full Member
  • ***
  • Posts: 133
  • Karma: +4/-1
    • View Profile
variable name for login name
« 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

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4151
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: variable name for login name
« Reply #1 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
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline quekbhj

  • Full Member
  • ***
  • Posts: 133
  • Karma: +4/-1
    • View Profile
Re: variable name for login name
« Reply #2 on: September 05, 2013, 09:18:00 AM »
Thank you

 

Powered by SMFPacks Social Login Mod