Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Welcome message removal

Welcome message removal

Locked

Views: 1,455

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
16 Jul 2008, 7:01 AM
#1
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

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

16 Jul 2008, 10:11 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Welcome message removal

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

define('HEADING_TITLE', '');
16 Jul 2008, 10:34 AM
#3
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

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

16 Jul 2008, 11:07 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

16 Jul 2008, 4:37 PM
#5
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

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

16 Jul 2008, 4:50 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Welcome message removal

Change

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

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.

16 Jul 2008, 5:00 PM
#7
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

Re: Welcome message removal

many thanks Mary Ellen

that's cracked it!!

16 Jul 2008, 5:01 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,606
Plugin Contributions:
0

Re: Welcome message removal

Wouldn't it be easier to turn the Greeting off from the Admin?

16 Jul 2008, 6:19 PM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Welcome message removal

Kim:

Wouldn't it be easier to turn the Greeting off from the Admin?

Oh, probably, but why do it the easy way. :D

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. :shocking:

17 Jul 2008, 6:26 AM
#10
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

Re: Welcome message removal

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