Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What's wrong with this bit of code then?


Guest

Recommended Posts

Ok if you look down the forum i had problem changing the index in language/english/includes/index.php so that the front page was personalised. i have tried so many different things and now taken virtually everything out. I am still having problems with a parse error now on line 16. please can someone tell me where the error is and what it is.

 

I have never used perl before have no idea at all what i am doing at all. I got rid of all the text in the main bit of the index, in the intention of putting in my text somehow, but i just don't seem to know what to do

 

<?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', ' My shop');

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', 'Show:');

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

}

?>

Link to comment
Share on other sites

Change

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

to

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

 

Have a nice day

 

regards

 

ralf

sometimes I change code before reading the comments, sometimes code doesn't even have comments, sometimes I rechange code after I read the code others wrote :-)

Link to comment
Share on other sites

change this line

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

 

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

 

and this line

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

 

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

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

i can't believe it was that simple i had so many errors when i was trying to change it. i was ready to strangle the thing, and it was all about punctuation. now i didn't put those sentances in there so they must have been wrong from the start. bet everyone's having that problem that has the same version as me then.

 

thank you so much. i'm going to go home now and see if it works. can't wait to get no errors

Link to comment
Share on other sites

You'll help yourself out if you get a PHP editor to look at these files. Search on Google for phpedit and see what comes up. Most will color-code your text for you - so it's easier to spot a stray ' or a missing ).

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...