Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with default.php in Define language


Steelers

Recommended Posts

Posted

I'm getting the following error:

 

Wrong parameter count for define() in /home/sites/site12/web/catalog/includes/languages/english/default.php on line 8

 

Below is the code

 

<?php

/*

$Id: default.php,v 1.18 2002/01/14 10:34:17 jan0815 Exp $

 

Released under the GNU General Public License

*/

 

define('Test');

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' || $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('Test', 'All');

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

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

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

define('HEADING_TITLE', 'Categories');

}

?>

 

 

Can any one help please.

 

Many thanks

 

Jonathan

Posted

What is the meaning of this:

define('Test');

(i presume this is line8)

 

The_Bear

Posted

Thanks

 

That solves part of the problem.

 

Under the "whats new here title" I get TEXT_MAIN being displayed. Any ideas how to remove that???

 

Thanks

 

Jonathan

Posted

Yes because in your language/english/default.php where you have

define('Test');

you should have

define('TEXT_MAIN','This where you add the text for the main page');

 

The_Bear

Posted

If you want to start a new paragraph in the text. What dunction would you need to include?

 

define('TEXT_MAIN','This where you add the text for the main page');

 

Many Thanks

Posted

<br> for a single line and <br><br> for a double line

 

The_Bear

Archived

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

×
×
  • Create New...