Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php


Guest

Recommended Posts

Posted

So I am very new to websites and I have messed up a little. I just now started seting up my site with OSC and when I went to edit the index.php from the admin section to put our wording on the front page and when i saved it it deleted it all. Now theres nothing in that file. I do not know enough html to put it back the way it was. Can anyone help me out a little with the code that should be in the file.

Posted

Rick,

 

If it is a new installation, just upload the file from the original copy that you downloaded.

 

Also, DO NOT use the file manager (mangler) in the admin area to edit files.

 

Read these:

 

Admin Security

 

General Security

 

 

Chris

Posted

Rick,

 

If it is a new installation, just upload the file from the original copy that you downloaded.

 

Also, DO NOT use the file manager (mangler) in the admin area to edit files.

 

Read these:

 

Admin Security

 

General Security

 

 

Chris

 

well I did not installation as I just went threw siteground.com and they did the install.. thanks for any help that you can give,.

Posted

Rick,

 

Unfortunately if you want to use osCommerce you will have to become more involved than that. Download the latest version here:

 

http://www.oscommerce.com/solutions/downloads

 

Follow the installation documentation to install V2.2 RC2a onto your server.

 

 

 

Chris

Posted

Rick,

 

Unfortunately if you want to use osCommerce you will have to become more involved than that. Download the latest version here:

 

http://www.oscommerce.com/solutions/downloads

 

Follow the installation documentation to install V2.2 RC2a onto your server.

 

 

 

Chris

 

thanks for your help Chris, I have the V2.2 now. I have change all the colors and got the store setup the way i wanted it except for this one setback. I have ran a OSC site for a long time but have always had a friend that knew the back side of it set it up.. I am just trying to find out the info for the one file so I dont see going all threw the install of OSC to get that. Atleast I dont think that is needed. Also if I did that I would lose all the changes that I have done this far correct?

 

Again thanks for you help as I am very new to this side of it.

Posted

The front page text can be changed in [catalog]/includes/lamguages/english/index.php

 

Look for TEXT_MAIN

 

 

Chris

Posted

The front page text can be changed in [catalog]/includes/lamguages/english/index.php

 

Look for TEXT_MAIN

 

 

Chris

 

 

Thats the part that I am talking about...... thats the part that i edited and when I save it it erased everything in there... Thats what I am trying to get back

Posted

Rick,

 

The trick is......don't erase the ' at the beginning or end.

 

So if you want it blank, just as an example.....it would look like this:

 

define('TEXT_MAIN', ' ');

 

Or you could change it to something like this:

 

 

define('TEXT_MAIN', 'Welcome to my store. Enjoy yourself');

 

 

Chris

Posted

Rick,

 

The trick is......don't erase the ' at the beginning or end.

 

So if you want it blank, just as an example.....it would look like this:

 

define('TEXT_MAIN', ' ');

 

Or you could change it to something like this:

 

 

define('TEXT_MAIN', 'Welcome to my store. Enjoy yourself');

 

 

Chris

 

I tried that but it puts it at the top of the page. There is nothing in the file when I open it so I guess the code needs to be there to tell it where to put the text. see what I mean www.spydergraphixstore.com

Archived

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

×
×
  • Create New...