dfcdev Posted September 23, 2015 Share Posted September 23, 2015 i need to display customer's first name on a page, once he or she is logged in! can someone point me to the right direction for this? specifially on this file: catalog / includes / modules / boxes / bm_add_header_user_menu.php the message should go right next to the "create account/login" buttons, at the very top right hand side of the page and should read: Welcome back, "customer's first name"! so far i did get the page to read "Welcome back!" once a user logs in, I would like for the user to see his/her first name right next to the welcome back message, see attached screenshot too! Link to comment Share on other sites More sharing options...
Mort-lemur Posted September 24, 2015 Share Posted September 24, 2015 @@dfcdev in my 2.3.4 store (with MTS) I had the following code in my header.php file - so that a customer actually knew they were logged in. Will need adjusting for a 2.3.4BS site but its a starter for 10. <?php if (tep_session_is_registered('customer_id')) { ?> <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . 'MTS SPECIFIC CODE HERE REMOVED '</a>'; ?></li> <li> <?php echo sprintf(LOGGED_IN_AS, $customer_first_name);?></li> Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.