Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Welcome message removal

    Hi

    Can anyone tell me how to completely remove the welcome message from the index.php

    I've tried editing the index.php file using a Crimson text editor but when I delete the chunk of code containg the greetings message I'm left with TEXT_GREETING_PERSONAL

    thanks

    Derek

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

    Default Re: Welcome message removal

    You should only remove the text between the ser of single quotes and wind up with

    Code:
    define('HEADING_TITLE', '');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Re: Welcome message removal

    thanks for your reply kobra

    This is my actual code:

    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: index.php 6550 2007-07-05 03:54:54Z drbyte $
    */

    define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');



    define('TEXT_INFORMATION', 'Define your main Index page copy here.');

    //moved to english
    //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

    //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
    //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
    //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

    if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
    // This section deals with product-listing page contents
    define('HEADING_TITLE', 'Available Products');
    define('TABLE_HEADING_IMAGE', 'Product Image');
    define('TABLE_HEADING_MODEL', 'Model');
    define('TABLE_HEADING_PRODUCTS', 'Product Name');
    define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
    define('TABLE_HEADING_QUANTITY', 'Quantity');
    define('TABLE_HEADING_PRICE', 'Price');
    define('TABLE_HEADING_WEIGHT', 'Weight');
    define('TABLE_HEADING_BUY_NOW', 'Buy Now');
    define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
    define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
    define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
    define('TEXT_SHOW', 'Filter Results by:');
    define('TEXT_BUY', 'Buy 1 \'');
    define('TEXT_NOW', '\' now');
    define('TEXT_ALL_CATEGORIES', 'All Categories');
    define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
    } elseif ($category_depth == 'top') {
    // This section deals with the "home" page at the top level with no options/products selected
    /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE', 'Welcome to Baitworks Online Store!!');
    } elseif ($category_depth == 'nested') {
    // This section deals with displaying a subcategory
    /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE', 'Welcome to Baitworks Online Store!!');
    }
    ?>


    Can anyone see the problem?

    thanks

    Derek

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

    Default Re: Welcome message removal

    Yes - you've removed a chunk of code that defines the TEXT_GREETING stuff. This just means that those items aren't defined as anything - Zencart will still try to call them when necessary, and the TEXT_GREETING_WHATEVER will be substituted.

    Write a new, unmodified copy of index.php to the includes/languages/english folder and make your changes as kobra suggested - just remove the text between the single quote marks.

  5. #5
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Re: Welcome message removal

    thanks stevesh

    I think I should have been more specific.
    I am trying to delete the Welcome guest, welcome Derek do you want to see our new products etc. sections with the 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.');
    }

    define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');

    define('TEXT_INFORMATION', 'Define your main Index page copy here.');[/COLOR]


    and just leave 'Welcome to Baitworks Online Store!!

    any help much appreciated

    Derek

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

    Default Re: Welcome message removal

    Change

    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>! Would you like to see our <a href="%s">newest additions</a>?');
    
    define('TEXT_INFORMATION', 'Define your main Index page copy here.');[/color]
    to

    Code:
    if (STORE_STATUS == '0') {
    define('TEXT_GREETING_GUEST', '');
    } else {
    define('TEXT_GREETING_GUEST', ''');
    }
    
    define('TEXT_GREETING_PERSONAL', '');
    
    define('TEXT_INFORMATION', 'Define your main Index page copy here.');[/color]
    I'm not sure about the TEXT_INFORMATION. I'd have to look at what I have.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  7. #7
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Re: Welcome message removal

    many thanks Mary Ellen

    that's cracked it!!

  8. #8
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Welcome message removal

    Wouldn't it be easier to turn the Greeting off from the Admin?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: Welcome message removal

    Quote Originally Posted by Kim View Post
    Wouldn't it be easier to turn the Greeting off from the Admin?
    Oh, probably, but why do it the easy way.

    Derek, look in admin->configuration->layout settings->Customer Greeting - Show on Index Page. You can turn it off from there... now that we've gone around the block to get to the house next door.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  10. #10
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Re: Welcome message removal

    Thanks to everyone - I'm new to Zen and am very impressed with the software and availability of worldwide support!

 

 

Similar Threads

  1. Logo & Sales Message removal
    By imheartcore in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Apr 2009, 07:36 PM
  2. Congratulations Message/Welcome Message
    By mxer269 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Apr 2009, 12:33 AM
  3. Removal of Welcome text top of page
    By Bruce1952 in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 5 Feb 2009, 09:53 PM
  4. Editing Welcome Message
    By LoriW. in forum General Questions
    Replies: 6
    Last Post: 29 Dec 2006, 07:38 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