Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Index.php


HighTide

Recommended Posts

Hi,

I'm a total newbie and I just registered to osCommerce Forums today. I read the main page of OSC and it said to edit the fields between define

('TEXT_MAIN', 'THIS PART');

But when I do so, I get an error saying:

 

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

 

I deleted everything in TEXT_MAIN so it was like this:

define('TEXT_MAIN', 'Hi.');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

Did I do everything right? Did I forget a step?

 

Thank you,

HighTide

Link to comment
Share on other sites

You probably used the file manager to edit the file - it removes backslashes from text like this: what\'s

 

The backslashes are needed to tell PHP to ignore the quote as a special character.

 

Download the file and use a plain text editor like notepad or a programmer's text editor to edit the file, then upload it to your server.

 

This question is answered at least ten times a day - you really should learn to use the forum search function :-"

 

Thanks! :D

 

Matti

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...