Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Index.php


daoutlaw

Recommended Posts

Hello Everyone.. I done did something wrong.. I am very lost right now. I went to tools then I clicked on define Languages and from there I went to the file index.php, to change my front page from saying "ERROR and you will not be charged for purchases". 2 question guys and girls.. How I get my page back up and where I go to so I change the wording on the index page?

Link to comment
Share on other sites

You change the text in includes/languages/english/index.php

 

The first line of code reads:

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project...........');

 

You put your text in between the 2 single quotes:

 

define('TEXT_MAIN', 'Your text goes in here');

 

Not sure what's happened to your index page however. Could you be more descriptive? What did you do just before losing it? What do you see right now? Are there error messages or just a big nothing?

Link to comment
Share on other sites

Well now it's just a big blank.. I must have made a mistake and took out the end of this code

 

('TEXT_MAIN', 'Your text goes in here>>>>'); <<<

 

and it just made the main screen blank but you wouldn't believe what I did since it was already blank anyway.. Yes, I completely erased the whole code :-( I hope you can help me.

 

Also that default set-up automatically activates once I put my information in the account or how do that work?

 

THANK YOU

Link to comment
Share on other sites

If you haven't already, download the latest osC upgrade from here.

 

First off, upload catalog/index.php, overwriting the one that is in your catalog directory or, if you have installed to root, the one that is there.

Next, do the same thing for catalog/includes/languages/english/index.php. Remember, although they are both named index.php, they are completely different, they are in different directories so need to be uploaded to their corresponding directories.

 

Now see if your site displays. If it does, all is good and you can upload the rest of the updated files (details of which are in the the latest osC update package).

 

If it doesn't, come back here and we will progress. ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...