Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / That how do I get rid of the "Congratulations!

That how do I get rid of the "Congratulations!

Locked

Started by clouise on 4 Jul 2007, 8:26 PM · Views: 3,693

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Jul 2007, 8:26 PM
#1
clouise avatar

clouise

New Zenner

Join Date:
Jul 2007
Posts:
5
Plugin Contributions:
0

That how do I get rid of the "Congratulations!

You have successfully installed..." text question again.

I have tried the FAQ step by step instructions below:

CAPITALIZED words refer to a folder or language that you choose. We use CUSTOM for your template and ENGLISH for your language by default. These generic terms should be changed to the name of the template/language you are using.

If you want to change "Congratulations! You have successfully installed your Zen Cart™; E-Commerce Solution" with your own text open the includes/languages/ENGLISH/index.php file and find the following code:
// 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', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
} 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', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
}
Replace the text starting “Congratulations” with your own text. Make sure that the single quote marks are not left out.
Save the edited file to includes/languages/ENGLISH/CUSTOM/index.php and upload it to your server.

I have checked the wiki pages & tried again, perused all of the associated threads & tried again.

I have set custom as my default template & changed everything else to my liking. Any suggestions to change this last sticky part?

5 Jul 2007, 5:46 PM
#2
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: That how do I get rid of the "Congratulations!

Do you mean you are using the default template that comes installed in Zen Cart? Is there a URI we can look at?

Shirley :)

6 Jul 2007, 12:35 PM
#3
clouise avatar

clouise

New Zenner

Join Date:
Jul 2007
Posts:
5
Plugin Contributions:
0

Re: That how do I get rid of the "Congratulations!

Shirley,

I made a new template but kept the name "custom". The url is http://www.dovetaildecor.com/SHOPPINGCART What is a URI?

I realized that I had to remove the advice // 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!'/
.

That took the "Congratulations" text out. However, I still can't replace it with anything. When I try, I get error on line 52 of index.php. and the shopping cart won't load in my browser at all.

So, I put some new text in another way. header.php I think. As you can probably tell -- I'm learning as I go!

Thank you for your help. Colleen.

6 Jul 2007, 2:21 PM
#4
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: That how do I get rid of the "Congratulations!

Hi Colleen,

Actually I'm new to Zen Cart too, still got loads to learn, but let me see if I could try to help... :)

Could you paste the entire /includes/language/english/custom/index.php file here so that we can all have a look?

By the way, this explains what a URI is : http://en.wikipedia.org/wiki/Uniform_Resource_Identifier

But I actually meant to type URL :)

Shirley

7 Jul 2007, 1:01 AM
#5
clouise avatar

clouise

New Zenner

Join Date:
Jul 2007
Posts:
5
Plugin Contributions:
0

Re: That how do I get rid of the "Congratulations!

Here it is. The part I changed is at the bottom & the text isn't showing as of now.

<?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 3027 2006-02-13 17:15:51Z 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>'); // 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.'); //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') { define('HEADING_TITLE', 'Welcome to Dovetail's Online Shop. Enjoy your visit!'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Welcome to Dovetail's Online Shop. Enjoy your visit!'); } ?>
7 Jul 2007, 1:42 AM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: That how do I get rid of the "Congratulations!

there is a complete article on this and a few other most asked questions in the wiki ( link above in the blue header ) look under custimization

Zen cart PCI compliant Hosting

7 Jul 2007, 3:00 AM
#7
Kim avatar

Kim

Obaa-san

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

Re: That how do I get rid of the "Congratulations!

Dovetail's

The problem is the apostrophe. PHP doesn't like them by themselves.

https://www.zen-cart.com/tutorials/index.php?article=128 Pay particular attention to the section in green.

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.

7 Jul 2007, 3:14 AM
#8
clouise avatar

clouise

New Zenner

Join Date:
Jul 2007
Posts:
5
Plugin Contributions:
0

Re: That how do I get rid of the "Congratulations!

Merlin, the article didn't answer my question. However, Kim, you did! What a simple little thing, an apostrophe. Thank you all for your help.

7 Jul 2007, 4:00 PM
#9
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Re: That how do I get rid of the "Congratulations!

PHP is picky about certain characters.

You might want to use a program that "catches" syntax errors in coding. I use PHP Editor, it's a free program. I can't remember if Dreamweaver does it or not, I haven't used that in a while.

HTH,

Lesli in SW Florida ~ writer, teacher, and dodging hurricanes!

9 Jul 2007, 2:46 AM
#10
clouise avatar

clouise

New Zenner

Join Date:
Jul 2007
Posts:
5
Plugin Contributions:
0

Re: That how do I get rid of the "Congratulations!

I think I actually found the article merlinpa1969 gave me a heads up on. I will also try the PHP editor. Thank you everyone!

9 Jul 2007, 3:16 AM
#11
afo avatar

afo

Totally Zenned

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

Re: That how do I get rid of the "Congratulations!

Crimson Editor can be a great help when editing php. It's a free download. Just search for it on the net.

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