ZenCart Change Welcome Message

From SWCP Support Wiki
Jump to navigationJump to search

The Welcome message invites your website guest to login. If you want to eliminate Welcome Guest! Would you like to log yourself in? message completely, turn off the Customer Greeting from the Admin Panel

 Configuration > Layout settings > Customer Greeting > Show on Index Page and set to 0.

If you want to replace this message with one of your own, this message is found in the index.php file of your languages files, located in includes/languages/english/CUSTOM/index.php file. Look for these lines of code:

if (STORE_STATUS == '0') {
define('TEXT_GREETING_GUEST', 'Welcome Guest!
 Would you like to <a href="%s">log yourself in</a>?');
} else {
define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
}
define('TEXT_GREETING_PERSONAL', 'Hello %s!');


As you can see, there are two Welcome messages depending upon whether you wish you Zen Cart™ to be a fully functioning store, or just a showroom. Edit the message starting from the word Welcome but be careful not to change the text in angled brackets, or the brackets themselves. Make sure that the single quote marks are not left out. If you want to include an apostrophe in your text e.g. Lucy's Store, you will need to put an escape character before the apostrophe, i.e. Lucy\'s Store.