Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / I screwed up my index.php file somehow and the shopping site won't show

I screwed up my index.php file somehow and the shopping site won't show

Locked

Started by mecanx on 5 Dec 2008, 11:57 PM · Views: 2,047

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
5 Dec 2008, 11:57 PM
#1
mecanx avatar

mecanx

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Post #1 by mecanx

Ok so I was changing a few things in the index.php file and the worked till I changed this one bolded:

the path is /includes/language/english/index.php for those who have the cart...I just need to apparently get those words that belong in the bolded back.

<?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>'); // 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', 'This is where you define your text information 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 Free Green Energy's Webshop'); } 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 Free Green Energy's Webshop'); } ?>

I forgot to back up the file so I don't have what it said there...apparently it doesn't want you to change that...

Can anybody help?

the shopping cart is here: or I should say was...

https://www.free-green-energy.com/shoppingcart/

Joel
Free Green Energy
https://www.free-green-energy.com/blog

6 Dec 2008, 12:00 AM
#2
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Post #2 by charmedbytina2

**> **

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


from includes/languages/english/index.php

Tina

6 Dec 2008, 12:04 AM
#3
mecanx avatar

mecanx

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Post #3 by mecanx

Damn you are quick thank you!!!! I'll see if it works.

6 Dec 2008, 12:09 AM
#4
mecanx avatar

mecanx

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Post #4 by mecanx

charmedbytina2:


from includes/languages/english/index.php

Tina

Oui, that didn't work and that's the only thing other than this that I changed..which it worked fine when I did...Am I missing something here?

<?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>'); // 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') { // 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 the Free Green Energy Webshop**'); } 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 the Free Green Energy Webshop**'); } ?>

link path: http://free-green-energy.com/shoppingcart/index.php?main_page=
and it gives me nothing...

Did i screw something up? And is there anyway to fix my shop? Or can I just get the original file back?

6 Dec 2008, 12:10 AM
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #5 by yellow1912

Your problem is not there

} 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 Free Green Energy\'s Webshop');
} 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 Free Green Energy\'s Webshop');
}

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

6 Dec 2008, 12:11 AM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #6 by yellow1912

If it still doesnt work, please use the debug utility https://www.zen-cart.com/tutorials/index.php?article=82

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

6 Dec 2008, 12:14 AM
#7
mecanx avatar

mecanx

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Post #7 by mecanx

yellow1912:

Your problem is not there

} 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 Free Green Energy's Webshop');
} 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 Free Green Energy's Webshop');
}


You guys rock! I didn't realize the 's would do that...changed my wording and now it works!!! Thanks!
6 Dec 2008, 12:15 AM
#8
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Post #8 by charmedbytina2

yellow1912 --> Thanks! I was looking at the codes to see what was wrong when your note posted. I didn't see any missing** '** which is usually the culprit (voice of experience).

Tina

6 Dec 2008, 12:18 AM
#9
mecanx avatar

mecanx

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Post #9 by mecanx

One last thing...

How do I make that centered? I can do it in html but php is a whole new ballgame for me...