Results 1 to 7 of 7
  1. #1

    Default how show greeting in top header?

    in default , the greeting is show only in the center of home page , i try to copy /plaste the code
    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
    <?php } ?> to tpl_header.php
    and then the home page show hello XXXX(a custom name) but in others page
    the code does not work.
    it show TEXT_GREETING_GUEST ...

  2. #2

    Default Re: how show greeting in top header?

    I would like to be able to show the greeting on all of the pages from tpl_header.php as well. It shows fine on the home page, but not on any other pages.
    Kustom By Kris
    Its All Zen!

  3. #3
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: how show greeting in top header?

    I am currently working on this also and I may have a possible solution although Im sure its not the best way of doing this...I included the following code inside tpl_header.php and it sorted the problem of pages other than the homepage displaying the message wrong.


    define('TEXT_GREETING_GUEST', 'Welcome Guest');
    define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>!');

    Good luck with this if anyone makes any further improvements please post them here so we can all benefit!

    Rory

  4. #4
    Join Date
    Jul 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: how show greeting in top header?

    I am also facing the same problem here

    please if you have got the solution reply me


    thanks

  5. #5
    Join Date
    Jul 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: atrribute quantity pricing problem

    in default , the greeting is show only in the center of home page , i try to copy /plaste the code
    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
    <?php } ?> to tpl_header.php
    and

    in product pages it shows

    EXT_GREETING_GUEST

    or after login

    TEXT_GREETING_PERSONAL

    please Help us

    Thanks

  6. #6
    Join Date
    Jan 2006
    Location
    minneapolis
    Posts
    67
    Plugin Contributions
    0

    Default Re: how show greeting in top header?

    I did it the way imageriot did, but I don't know if there's a better way...

    define('TEXT_GREETING_GUEST', 'Welcome Guest');
    define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>!');

  7. #7
    Join Date
    Dec 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: how show greeting in top header?

    thanks. that did the trick.
    I pasted the code inside the english language folder into the "header.php" file just under "header_title_login" and now it works just as expected.

    really really big thanks for the help.

    includes/languages/english/header.php

    paste anywhere (using common sense, needless to say)
    define('TEXT_GREETING_GUEST', 'Welcome Guest');
    define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>!');

    saved and solved.

 

 

Similar Threads

  1. How do I show all products in a top catergory?
    By lordhelpus in forum Customization from the Admin
    Replies: 0
    Last Post: 28 Jan 2011, 11:30 AM
  2. Replies: 2
    Last Post: 12 Sep 2007, 05:34 AM
  3. how to show categories in the top
    By bidsea in forum Customization from the Admin
    Replies: 0
    Last Post: 23 Apr 2007, 12:00 PM

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