Post by ogun » Wed Aug 15, 2007 7:47 am

0.7 Looks great so far - congratulations to the developer(s)!

This was more of an exercise in starting to find my way around the script than anything else.

The admin panel doesn't show who you're logged in as until you've set a first name for yourself in your user properties. First names make sense for customers because they log in with an email address, but for an admin user it's not immediately obvious what's happening. To get around this (and show the username instead):

add:

Code: Select all

function getUserName() {
    return (isset($this->data['username']) ? $this->data['username'] : NULL);
}
to the end of 'library\user\user.php'.

and replace:

Code: Select all

$view->set('user', $language->get('text_user', $user->getFirstName()));
with:

Code: Select all

//$view->set('user', $language->get('text_user', $user->getFirstName()));
$view->set('user', $language->get('text_user', $user->getUserName()));
in 'admin\extension\module\header.php'.

Active Member

Posts

Joined
Tue Aug 14, 2007 6:04 am

Post by Daniel » Fri Aug 17, 2007 5:56 am

I have fixed this and going to release with the next version.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 3 guests