sefimor Posted May 13, 2007 Share Posted May 13, 2007 HI i want to add "wellcome guest" to my pages, after searching in the forum i learn it is found at catalog/includes/languages/english/english.php, lines 284-286 and can be modified there, but how can i add it to my index page? thank you, thank you Link to comment Share on other sites More sharing options...
Andrew Yuen Posted May 13, 2007 Share Posted May 13, 2007 What you can do is add define('WELCOME_GUEST', 'Welcome Guest'); to the index.php file located here: /public_html/catalog/includes/languages/english/ Then on your /public_html/catalog/index.php page you can add <?php echo WELCOME_GUEST; ?> where you want the message to display. Andrew Yuen osCommerce, Community Team Link to comment Share on other sites More sharing options...
sefimor Posted May 14, 2007 Author Share Posted May 14, 2007 What you can do is add define('WELCOME_GUEST', 'Welcome Guest'); to the index.php file located here: /public_html/catalog/includes/languages/english/ Then on your /public_html/catalog/index.php page you can add <?php echo WELCOME_GUEST; ?> where you want the message to display. Thank you for your quick reply, the thing is that i only get welcome guest, even if I'm logged in it doesn't show the guest name, only guest.. What should i change? thanks again Link to comment Share on other sites More sharing options...
Qihun Posted May 14, 2007 Share Posted May 14, 2007 I would check includes/functions/general.php file around line 985 + there is a function responsible for greetings. Be sure you have FIRST name in database entered. and I would check the language English.php file if there any missing symbols especially <span class="greetUser">%s!</span>. good luck Link to comment Share on other sites More sharing options...
sefimor Posted May 14, 2007 Author Share Posted May 14, 2007 I would check includes/functions/general.php file around line 985 + there is a function responsible for greetings.Be sure you have FIRST name in database entered. and I would check the language English.php file if there any missing symbols especially <span class="greetUser">%s!</span>. good luck Link to comment Share on other sites More sharing options...
sefimor Posted May 14, 2007 Author Share Posted May 14, 2007 I would check includes/functions/general.php file around line 985 + there is a function responsible for greetings.Be sure you have FIRST name in database entered. and I would check the language English.php file if there any missing symbols especially <span class="greetUser">%s!</span>. good luck Hi includes/functions/general.php // 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; } I think it is o.k(is it?) language English.php file doesn't have any missing symbols Sorry for the ignorant but' what do you mean "you have FIRST name in database entered"? should i run someting special on my database?any special contribution i didn't now about...? sorry, i don't have programming background. thanks for the help Link to comment Share on other sites More sharing options...
Qihun Posted May 14, 2007 Share Posted May 14, 2007 I meant that the function print first name from data base and if it is not in the database so nothing to show. I hope I'm clear - English is not my first language. Another thought - check the login in routine . Be sure you created account properly and check the Log in page file for incorrect coding . I am not a programmer either just trying to help good luck Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.