On the index page of osC 2.3.1 is the greeting
"Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?"
Where can I find to change the text and add buttons instead of the link text?
Latest News: (loading..)
Changing text for greeting on index
Started by Nor-Cal, Mar 30 2011 05:46 PM
11 replies to this topic
#1
Posted 30 March 2011 - 05:46 PM
#2 ONLINE
Posted 30 March 2011 - 06:20 PM
Erik,
You will find that in the language definition file /includes/languages/english.php as such:
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');
Chris
You will find that in the language definition file /includes/languages/english.php as such:
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');
Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:
See my Profile (click here) for more information and to contact me for professional osCommerce support that includes custom templates, add ons as well as cart leasing and support plans.
See my Profile (click here) for more information and to contact me for professional osCommerce support that includes custom templates, add ons as well as cart leasing and support plans.
#3
Posted 30 March 2011 - 11:00 PM
Thank you chris.... very much appreciated!!!
#4
Posted 02 January 2012 - 01:52 PM
im interested in changing the bold welcome to (name of site ) text above the logo yourself in text.. still searching forums by the way very new to osc.. in love with it! happy new year all
#5 ONLINE
Posted 02 January 2012 - 02:53 PM
Christopher,
You can find that text in the /includes/languages/english.php
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');
Chris
You can find that text in the /includes/languages/english.php
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');
Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:
See my Profile (click here) for more information and to contact me for professional osCommerce support that includes custom templates, add ons as well as cart leasing and support plans.
See my Profile (click here) for more information and to contact me for professional osCommerce support that includes custom templates, add ons as well as cart leasing and support plans.
#6
Posted 02 January 2012 - 02:54 PM
got it thanks chris!
#7
Posted 19 September 2012 - 01:55 PM
I want to change the greeting as well. I just want to remove "would you like to see new products? I removed the section in red and got an error message and no home page? What exactly should I remove? Thanks
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
#8
Posted 19 September 2012 - 02:28 PM
You removed the ending single quote
The below is correct
The below is correct
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span>');
#9
Posted 19 September 2012 - 03:11 PM
thanks so much. I have no clue about editing php
#10
Posted 19 September 2012 - 03:27 PM
What you could do is, to start using a php editor, that will highlight the syntax, so you'll know at least is something goes wrog and where (like a kissing quote and things like this)
#11
Posted 19 September 2012 - 07:36 PM
What would you suggest as a php editor?
#12
Posted 19 September 2012 - 08:59 PM
textpad
PSPad
notepad++
There are others that are free also.
Tim
PSPad
notepad++
There are others that are free also.
Tim









