Saturday, March 12, 2011

How to Change or Remove the Welcome Guest Message in Zen Cart

Posted by The Wizz | 11:30 AM | 0 comments »

In today's Zen Cart tutorial I discuss how to delete or change Welcome Guest message in Zen Cart. A new Zen Cart store installation has a Welcome Guest message by default. If you would prefer to remove the message it is not hard to do so. Alternatively Zen Cart allows you the flexibility to adapt the text message to meet the needs of your particular Zen Cart ecommerce store.

Below are the steps to take to remove or change the Welcome Guest message in Zen Cart:

  1. How to Remove the Welcome Guest Message in Zen Cart

    1. Log in to Zen Cart admin

    2. Go to Admin > Configuration > Layout settings

    3. Set Customer Greeting > Show on Index Page to 0

  2. How to To Replace, Change, Alter, Edit the Welcome Guest Message in Zen Cart

    1. To make changes to the default Welcome Guest Message in Zen Cart you will need to edit the core English index file using notepad or another simple text editor. Download the file using FTP or your server's File Manager

      If you are using the default Classic template edit the following file:


      If you are using a custom template then edit that override file. For example:


    2. Find the following 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>!');

    3. Any text shown in red can be changed. The blue code shows links to other pages and needs to be left alone unless you know what you are doing with respect to hyperlinks.

      When editing these line take care not to remove any of the single quotation marks or brackets. To use an apostrophe in your text place an escape character (backward slash) before the apostrophe, e.g. Bob's Bookstore becomes Bob\'s Bookstore. An example of an edited Welcome Guest message is shown below:

      if (STORE_STATUS == '0') {
      define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Please <a href="%s">log in</a> to make a purchase. New customers receive 20% off their first order.');
      } else {
      define('TEXT_GREETING_GUEST', 'Welcome to our online showcase.');
      define('TEXT_GREETING_PERSONAL', 'Welcome Back <span class="greetUser">%s</span>!');

    4. Save your changes

    5. Once you are satisfied with your changes upload your changed file and replace the existing index.php file in same location as downloaded it from.

In today's Zen Cart tutorial you have learned how to change the Welcome Guest message to one of your own or remove it all together. Good luck!

Bookmark and Share

Get regular updates by email or in a reader.
Bookmark and share this post:

Add To Google BookmarksStumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditTwit ThisAdd To Facebook



Post a Comment