Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Question


ladykaren

Recommended Posts

Ok, another newbie question .... I'm trying to delete all the default text from the index.php. My code now looks like this

 

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

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('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') {

 

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

define('HEADING_TITLE', 'Categories');

}

?>

 

Now when I open Online Catalog I recieve this

 

Parse error: syntax error, unexpected T_STRING in /home/ladykd54/public_html/cart/includes/languages/english/index.php on line 14

 

Help????

Link to comment
Share on other sites

You could have deleted too much of the text. You should only delete the text between the ' and the '.

 

It should look something like this

 

define('TEXT_MAIN', '');

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

You could have deleted too much of the text. You should only delete the text between the ' and the '.

 

It should look something like this

 

define('TEXT_MAIN', '');

 

 

Hi there;

Thank you for getting back with me. I added the ,''); to the end of MAIN and now I get this

 

Parse error: syntax error, unexpected T_IF in /home/ladykd54/public_html/cart/includes/languages/english/index.php on line 18

 

Help???

Link to comment
Share on other sites

Never mind ... I found it YIPPEEE Happy Dance lol

 

Now ... I just need to find out how to get right of HEADING_TITLE AND TEXT_GREETING GUEST and then onto new problems lol

 

Hugs,

Karen

 

Hi there;

Thank you for getting back with me. I added the ,''); to the end of MAIN and now I get this

 

Parse error: syntax error, unexpected T_IF in /home/ladykd54/public_html/cart/includes/languages/english/index.php on line 18

 

Help???

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...