Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Posts
    13
    Plugin Contributions
    0

    Default Main Page Messed Up

    Hi,

    I was trying to change the text format of my shopping cart's home page and messed something up and keep getting php errors when I try to load the page.

    The site is located at http://historicdumfries.com/GiftShop/ and my code is posted below.

    Any help would be appreciated.

    Thank you very much.

    <?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 6531 2007-06-26 00:55:30Z 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', '<p align="center">Welcome to our Gift Shop!
    <p>When you find something you like, click Add to Cart.</p>

    <p>Order using any of these methods:<br>
    1. Take advantage of our shopping cart to make payment via credit card (through Paypal),<br>
    2. If you are a registered user of Paypal, you can use your bank account, or<br>
    3. Print out our order form and mail payment in the form of check or money order to:</p>

    <p>HDV, Inc.<br>
    PO Box 26<br>
    Dumfries, VA 22026<br>

    <p>Welcome Guest! Would you like to log yourself in?</p>')

    } 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', '<p align="center">Welcome to our Gift Shop!
    <p>When you find something you like, click Add to Cart.</p>

    <p>Order using any of these methods:<br>
    1. Take advantage of our shopping cart to make payment via credit card (through Paypal),<br>
    2. If you are a registered user of Paypal, you can use your bank account, or<br>
    3. Print out our order form and mail payment in the form of check or money order to:</p>

    <p>HDV, Inc.<br>
    PO Box 26<br>
    Dumfries, VA 22026<br>

    <p>Welcome Guest! Would you like to log yourself in?</p>');
    }
    ?>

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

    Default Re: Main Page Messed Up

    Answered in a duplicate post - Please only pot a question once

    Other Thrread: http://zen-cart.com/forum/showthread.php?t=91682

 

 

Similar Threads

  1. help my main page messed up
    By lcarlo1507 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Sep 2011, 10:53 PM
  2. Help Remove catagories off main page, but list subcatagories of main page
    By MadPricerSales in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Mar 2010, 04:14 AM
  3. Featured Products Messed up on Main Page in IE
    By cinbou in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Mar 2010, 03:56 AM
  4. Help main store page messed up
    By splishsplashbb in forum General Questions
    Replies: 2
    Last Post: 8 Jan 2009, 05:50 PM
  5. Home Page (Main Page) layout messed up?
    By shooter.ca in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 1 Jun 2008, 05:11 PM

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