Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

i need to display customer's first name on a page


dfcdev

Recommended Posts

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!

 

 

post-335687-0-14871200-1443029799_thumb.jpg

Link to comment
Share on other sites

@@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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...