I've been looking at the issue and I think it has something to do with how the function is structured but can't pinpoint exactly where the problem is.
This is the function:
/// bof Personalized My Account Link by bigjoed
function zen_customer_store_account() {
if (isset($_SESSION['customer_id']) && $_SESSION['customer_first_name']) {
$store_account_string = sprintf(TEXT_STORE_ACCOUNT_PERSONAL, zen_output_string_protected($_SESSION['customer_first_name']), zen_href_link(FILENAME_ACCOUNT));
} else {
$store_account_string = sprintf(TEXT_STORE_ACCOUNT_GUEST, zen_href_link(FILENAME_LOGIN, '', 'SSL'), zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}
return $store_account_string;
}
/// eof Personalized My Account Link by bigjoed
When you're logged in the first part of the function works just fine. As far as I can tell it has something to do with the else statement (or when you're not logged in.
There seem to be two links calls (actually 3, if you count the link in this define statement (TEXT_STORE_ACCOUNT_GUEST)) that may be causing the double tab. I just can't figure out how to correct it.
The mod works just fine using the default tpl_header.php (that is just using the unordered list without moving things around. In the default the My Account link doesn't display until you're logged in.
I'll keep working on it (but at this point, You may have to modify the navbar a little bit to ge the personal account information to show properly.)
I'll let you know.
Bookmarks