Thread: Heading_title

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Nov 2010
    Posts
    64
    Plugin Contributions
    0

    Default Heading_title

    Hi,
    Wondering how to get rid of or modify the following on my site halfway down the page (http://hissigns.com/zencart/index.php?main_page=index):

    HEADING_TITLE

    TEXT_GREETING_GUEST
    What does this do?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Heading_title

    TThose are constants that should have defined text to display

    Most commonly when a constant is displayed, it is the result of a mis-edited file

    The developers tool kit can assist in locating them
    https://www.zen-cart.com/tutorials/index.php?article=38
    https://www.zen-cart.com/tutorials/index.php?article=39

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Heading_title

    Those are defined in includes/languages/english/index.php (or, if you've edited it, includes/languages/english/theme238/index.php), so that file is either missing, mis-edited or corrupted.


    The kobra is quick ...

  4. #4
    Join Date
    Nov 2010
    Posts
    64
    Plugin Contributions
    0

    Default Re: Heading_title

    Quote Originally Posted by stevesh View Post
    Those are defined in includes/languages/english/index.php (or, if you've edited it, includes/languages/english/theme238/index.php), so that file is either missing, mis-edited or corrupted.


    The kobra is quick ...
    I don't know what to do still. I do know where to alter the TEXT_GREETING_GUEST section but how do I hide this title altogether?

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Heading_title

    That constant is defined in index.php. You've evidently incorrectly edited the file.

    The original file (includes/languages/english/index.php) contains the following:

    Code:
    // Showcase vs Store
    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.');
    }
    Copy/paste those lines into includes/languages/english/YOUR_TEMPLATE/index.php (where YOUR_TEMPLATE is the name of your custom template). If you don't want any greeting, change them to:

    Code:
    // Showcase vs Store
    if (STORE_STATUS == '0') {
      define('TEXT_GREETING_GUEST', '');
    } else {
      define('TEXT_GREETING_GUEST', '');
    }
    I made the single quotes different colors to make it clear.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Heading_title

    As you have a template monster template it may or may not respond to standard settings as they take license with the way they code them

    For the "TEXT_GREETING_GUEST", there is still a mis edit
    but there is an admin switch for it in
    admin > config > layout settings

  7. #7
    Join Date
    Nov 2010
    Posts
    64
    Plugin Contributions
    0

    Default Re: Heading_title

    Quote Originally Posted by afo View Post
    That constant is defined in index.php. You've evidently incorrectly edited the file.

    The original file (includes/languages/english/index.php) contains the following:

    Code:
    // Showcase vs Store
    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.');
    }
    Copy/paste those lines into includes/languages/english/YOUR_TEMPLATE/index.php (where YOUR_TEMPLATE is the name of your custom template). If you don't want any greeting, change them to:

    Code:
    // Showcase vs Store
    if (STORE_STATUS == '0') {
      define('TEXT_GREETING_GUEST', '');
    } else {
      define('TEXT_GREETING_GUEST', '');
    }
    I made the single quotes different colors to make it clear.
    I checked my code and it appears to be exactly the same as yours. Any other ideas?

  8. #8
    Join Date
    Nov 2010
    Posts
    64
    Plugin Contributions
    0

    Default Re: Heading_title

    Quote Originally Posted by kobra View Post
    As you have a template monster template it may or may not respond to standard settings as they take license with the way they code them

    For the "TEXT_GREETING_GUEST", there is still a mis edit
    but there is an admin switch for it in
    admin > config > layout settings
    Which "Title"/"Value"/"Action" do I need to change? I don't see one that can eliminate this.

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Heading_title

    Which "Title"/"Value"/"Action" do I need to change?
    admin > config > layout settings > Customer Greeting - Show on Index Page

  10. #10
    Join Date
    Nov 2010
    Posts
    64
    Plugin Contributions
    0

    Default Re: Heading_title

    Quote Originally Posted by kobra View Post
    admin > config > layout settings > Customer Greeting - Show on Index Page
    But it is already set to zero=off.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. HEADING_TITLE's is missing
    By Jazzperson in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 23 Dec 2010, 01:42 AM
  2. remove HEADING_TITLE
    By hangman21 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 May 2010, 08:33 AM
  3. format HEADING_TITLE
    By taylorosso in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Mar 2009, 09:19 AM

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