Jump to content

View User Information On Page My-Account.tpl


Mohammad Oveissi

Recommended Posts

Hi guys,

 

This code works for version 1.4



This information is available in the visitor's cookie, you can easily display it in my-account.tpl:
{l s='Your e-mail address is:'} {$cookie->email|escape:'htmlall':'UTF-8'}
For more details, you can double-check where it is being assigned, in /controllers/AuthController.php at line 178, upon authentication
:self::$cookie->id_customer = (int)($customer->id);
self::$cookie->customer_lastname = $customer->lastname;
self::$cookie->customer_firstname = $customer->firstname;
self::$cookie->passwd = $customer->passwd;
self::$cookie->logged = 1;
self::$cookie->email = $customer->email;


Now my question is what to do for version 1.6 that the instance name or last name added to the user information page or the my-account.tpl

I see this method to add fields such as national code, I want to see how to make these too added

 


 

Thank you

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...