PHP forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
March 2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Calendar Calendar

Latest topics
» Kabaddi, Kabaddi, Kabaddi, Kabaddi......PHP?
How do I change the Welcome Guest Message? EmptyFri Jul 22, 2011 1:37 pm by shyamsunder

» Thousands of Free PHP Scripts Recommended
How do I change the Welcome Guest Message? EmptyWed May 18, 2011 10:33 am by bizboy12

» PHP form validation problem?
How do I change the Welcome Guest Message? EmptyWed Jan 12, 2011 1:25 pm by simy202

» string wrap
How do I change the Welcome Guest Message? EmptySat Aug 02, 2008 2:06 pm by scvinodkumar

» retrieving current date rows
How do I change the Welcome Guest Message? EmptyTue Jul 15, 2008 3:25 am by scvinodkumar

» number in words
How do I change the Welcome Guest Message? EmptyTue Apr 29, 2008 3:10 pm by scvinodkumar

» Simple PHP Form Field Generator
How do I change the Welcome Guest Message? EmptyFri Apr 25, 2008 12:28 pm by scvinodkumar

» PHP password generator
How do I change the Welcome Guest Message? EmptyFri Apr 18, 2008 7:24 pm by scvinodkumar

» PHP Script to Extract Email Address from any text
How do I change the Welcome Guest Message? EmptyFri Apr 18, 2008 7:18 pm by scvinodkumar

Search
 
 

Display results as :
 


Rechercher Advanced Search

Affiliates
free forum
 


Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How do I change the Welcome Guest Message?

Go down

How do I change the Welcome Guest Message? Empty How do I change the Welcome Guest Message?

Post  scvinodkumar Fri Apr 04, 2008 10:01 pm

If you want to eliminate “Welcome Guest!” Would you like to log yourself in?” message completely, turn off the Customer Greeting in your Admin -> 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, start your text editor and open the includes/languages/ENGLISH/index.php file and locate these lines of code

if (STORE_STATUS == '0') {
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> 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 <span class="greetUser">%s</span>!');

As you can see, there are two Welcome messages depending upon whether you wish 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”.

Save the edited file to includes/languages/ENGLISH/CUSTOM/index.php and upload it to your server.

scvinodkumar
Admin

Posts : 40
Join date : 2008-01-30

https://solutions.aforumfree.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum