Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2008
    Posts
    5
    Plugin Contributions
    0

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

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

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

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

  2. #2
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

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

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


    from includes/languages/english/index.php

    Tina

  3. #3
    Join Date
    Dec 2008
    Posts
    5
    Plugin Contributions
    0

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

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

  4. #4
    Join Date
    Dec 2008
    Posts
    5
    Plugin Contributions
    0

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

    Quote Originally Posted by charmedbytina2 View Post

    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/shoppin...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?
    Last edited by mecanx; 6 Dec 2008 at 01:11 AM. Reason: forgot something

  5. #5
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    Your problem is not there

    PHP Code:
    } 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. #6
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    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

  7. #7
    Join Date
    Dec 2008
    Posts
    5
    Plugin Contributions
    0

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

    Quote Originally Posted by yellow1912 View Post
    Your problem is not there

    PHP Code:
    } 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!

  8. #8
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

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

    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

  9. #9
    Join Date
    Dec 2008
    Posts
    5
    Plugin Contributions
    0

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

    One last thing...

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

 

 

Similar Threads

  1. Replies: 3
    Last Post: 31 May 2013, 07:20 PM
  2. Replies: 1
    Last Post: 27 Apr 2012, 12:40 PM
  3. So screwed up the Admin page somehow...
    By Serious in forum Basic Configuration
    Replies: 5
    Last Post: 18 Feb 2011, 05:53 AM
  4. Can't get the index.php to show up on live site
    By maxapplle in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 12 Jun 2007, 06:55 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR