Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Can't change text on index.php


Recommended Posts

I have the cart all set up and I went in to put my own text on the index page as directed in the instructions. No matter what I change I get this error:


Parse error: parse error, unexpected T_STRING in catalog/includes/languages/english/index.php on line 19


My last attempt was to simply delete all the text in the define('TEXT_MAIN', ''). All I did was open the file to edit in the file editor from the admin section. I deleted the text in define('TEXT_MAIN', '') and clicked on the save button. When I go back to my catalog index page I get the error listed above. Here is what the index code looks like after editing and clicking on save:




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


osCommerce, Open Source E-Commerce Solutions



Copyright © 2003 osCommerce


Released under the GNU General Public License



define('TEXT_MAIN', '');

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', 'Let's See What We Have Here');

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');





Any ideas??


Thank you.

Link to comment
Share on other sites

 define('HEADING_TITLE', 'Let's See What We Have Here');

Needs to be

define('HEADING_TITLE', 'Let\'s See What We Have Here');


 define('HEADING_TITLE', 'What's New Here?');

will need to be

define('HEADING_TITLE', 'What\'s New Here?');

It looks like the backslashes were somehow removed. Make sure you're using a text editor that doesn't change stuff like that.

Link to comment
Share on other sites


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

  • Create New...