Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with index.php page


lori2653

Recommended Posts

I am getting the following information on the index page of my oscommerce store. I have reviewed all the files and cannot figure out how to get rid of this. I installed this with fantastico. Can anyone help???? :unsure:

 

This is a default setup of the osCommerce project, products shown are for demonstrational purposes, any products purchased will not be delivered nor will the customer be billed. Any information seen on these products is to be treated as fictional.

 

Error Messages

 

If there are any error or warning messages shown above, please correct them first before proceeding.

 

Error messages are displayed at the very top of the page with a complete background color.

 

Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.

Editing Page Texts

 

The text shown here can be modified in the following file, on each language basis:

 

[path to catalog]/includes/languages/english/index.php

 

That file can be edited manually, or via the Administration Tool with the Languages->English->Define or Tools->File Manager modules.

 

The text is set in the following manner:

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project...');

 

The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:

Link to comment
Share on other sites

I'm having a problem with this too, have been through the Forum Posts and also the Wiki Documentation. Current version 2.2

 

I know I have done something stupid in the index.php file (I have made a backup of original), if someone could just point me in the right direction, I would be most appreciative.

 

My edited index.php file:

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'Tranquil Earth is a small-business based in Westlake, Queensland, Australia.<br><br>We have access to a small number of reputable suppliers and therefore we can closely monitor all of our products, to offer you the highest quality goods at competitive prices.<br><br><b>We are committed to offer you a fabulous selection of products and even better customer service.</b><br><brShould you not be completely satisfied with any of our products, <b>except herbs</b>, you can exchange them, or ask for a full refund <b>within 14 days>/b>. But please tell us why you're not happy with the product. Thats the only way we can rectify the problem at this end.<br><br>We are constantly adding new product lines to our range so if you cannot find what you want on this site, please let us know and we will advise if we can find it for you and add it to our stock.<br><br><b>5% of all sales are donated to The Wilderness</b>');

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') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Welcome to Tranquil Earth');

define('TABLE_HEADING_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', '<b>Show:</b>');

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', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

 

I receive the following error on my shop page:

 

Parse error: parse error in /home2/dmschool/public_html/shoppe/includes/languages/english/index.php on line 13

 

My shop address:

http://dmschool.org/shoppe/

 

Line 13 is the beginning of:

define('TEXT_MAIN', 'Tranquil ...

 

Please help URGENTLY!

 

Kind Regards,

 

Penny

Link to comment
Share on other sites

define('TEXT_MAIN', 'Tranquil Earth is a small-business based in Westlake, Queensland, Australia.<br><br>We have access to a small number of reputable suppliers and therefore we can closely monitor all of our products, to offer you the highest quality goods at competitive prices.<br><br><b>We are committed to offer you a fabulous selection of products and even better customer service.</b><br><brShould you not be completely satisfied with any of our products, <b>except herbs</b>, you can exchange them, or ask for a full refund <b>within 14 days>/b>. But please tell us why you're not happy with the product. Thats the only way we can rectify the problem at this end.<br><br>We are constantly adding new product lines to our range so if you cannot find what you want on this site, please let us know and we will advise if we can find it for you and add it to our stock.<br><br><b>5% of all sales are donated to The Wilderness</b>');

 

The single quote is causing problem .... either remove it ..or put the whole text in double quotes "Tranquil Earth..... "

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...