Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Welcome User Message


mariano_quilmes

Recommended Posts

Posted

Hello, I was wondering if there is a way to modify the greeting user message like this: "Welcome First Name Last Name" instead of the default greeting message which shows the welcome user message as well as the log in or create account link. Another thing... where can I find the color of the "user" name in the stylesheet.css, I cannot find it anywhere to change its attributes.

 

Thanks.

 

Mariano.

Posted

Hello, I was wondering if there is a way to modify the greeting user message like this: "Welcome First Name Last Name" instead of the default greeting message which shows the welcome user message as well as the log in or create account link. Another thing... where can I find the color of the "user" name in the stylesheet.css, I cannot find it anywhere to change its attributes.

 

Thanks.

 

Mariano.

 

The greeting appears to be set in catalog/includes/functions/general.php. Look for

 // Return a customer greeting
 function tep_customer_greeting() {
   global $customer_id, $customer_first_name;

   if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
     $greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW));
   } else {
     $greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
   }

   return $greeting_string;
 }

 

You will then have to find where the query to the database is and make sure it is calling the users lastname as well. Then enter it into the function.

 

 

The color in the stylesheet appears to be set by A and A:hover. A great tool for finding out what CSS is controling what is Fire Bug for Firefox. It will help you to easily find out what you need to change.

 

Hope this helps.

Archived

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

×
×
  • Create New...