Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    26
    Plugin Contributions
    0

    Default Moving the welcome message to the header

    I moved the welcome message to the header. It works fine on the home page and catalog pages, but when you go to a individual product page and EZ pages says this

    TEXT_GREETING_GUEST

    My assumption is that there is no code to tell it what to do on the product pages. It was never designed to go on every page.

    Is there any way to modify it so it either disappears or shows correctly?

    Thanks

    This is what I moved to the header file
    Code:
    <div id="greeting">
    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <p><?php echo zen_customer_greeting(); ?></p>
    <?php } ?>
    </div>

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Moving the welcome message to the header

    The text is normally defined in includes/languages/english/index.php, which means it will only get defined when the index page loads. To have it defined for every page, move the define statements from index.php to your override copy of english.php
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Oct 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving the welcome message to the header

    Worked awesome thanks

    For the record I moved the following:
    Code:
    if (STORE_STATUS == '0') {
      define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span>');
    } else {
      define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
    }
    
    define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>!');

 

 

Similar Threads

  1. How do I move the welcome message into my header?
    By jamandchips in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 May 2010, 09:48 PM
  2. Moving the top header bar under the the logo
    By sfklaas in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Mar 2008, 05:16 PM
  3. Fighting to change the header.jpg image in the welcome email
    By canemasters in forum General Questions
    Replies: 2
    Last Post: 19 Aug 2007, 05:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR