Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems editing index


mile77

Recommended Posts

I get errors everytime i try to change text main in the include/english/index.php file. Here is the file...

 

define('TEXT_MAIN', 'Why dont i work');

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

}

 

THe store is www.mile77.com/catalog/

 

any suggestions? Thanks!

Link to comment
Share on other sites

Posting the error would be helpful, but I'm pretty sure I know what the problem is in your case. Where there's an apostrophe " ' " in the text you want displayed, you need to place a backslash "\" in front of it. For example:

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

Should be:

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

This is how the files are initially, using something other than a text editor to modify the files can cause these problems.

 

Good luck!

Link to comment
Share on other sites

This is what I get when trying to pull up your main catalog page:

 

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

 

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

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

 

Change define('TEXT_BUY', 'Buy 1 '');

To define('TEXT_BUY', 'Buy 1 \'');

 

Change define('TEXT_NOW', '' now');

To define('TEXT_NOW', '\' now');

 

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

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...