Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osC file structure question


ivylane

Recommended Posts

Posted

Can someone explain to me (or point me somewhere to look) the file structure for the OsCommerce solution? Along with that, what is the purpose of some of the main .php files (i.e., english.php, /catalog/.../english/index.php?

 

I have been researching how to change some (what seem to be) basic changes on the store, i.e. how to remove the "Welcome Guest..." and "What's New Here" info, and it seems that you have to modify two seperate files,... why is that?

 

I am just trying to get a picture in my mind as to how the structure works.

 

Thanks

Posted

OScommerce is structured so you can have multiple languages using the same design. To do this it requests the text for each page from the language folder, depending on which language your customer has selected. If you are not using more then one language you'll only have to edit the text for those files in the language folder.

 

You don't have to delete any of the text if you are not going to use it, you'll just have to remove the related elements from the page.

 

For example if you wanted to remove the Welcome Guest section you would just edit the Index file and remove the code related to it - you wouldn't have to change the text file.

Posted
OScommerce is structured so you can have multiple languages using the same design. To do this it requests the text for each page from the language folder, depending on which language your customer has selected. If you are not using more then one language you'll only have to edit the text for those files in the language folder.

 

You don't have to delete any of the text if you are not going to use it, you'll just have to remove the related elements from the page.

 

For example if you wanted to remove the Welcome Guest section you would just edit the Index file and remove the code related to it - you wouldn't have to change the text file.

 

So, it requests the text from each page from the language folder,.. but there is something else also,.. because I edited some of the .php files trying to remove the "welcome guest" and "what's new" info,.. and now in the place of the text,.. it says, "HEADING_TITLE" and "TEXT_GREETING_GUEST".

Posted

That's because the main page or catalog page is trying to call up information in the language page. On the corresponding includes/languages/PICKYOURLANGUAGE/somefilename.php is a line that defines what to insert into that area. If you have deleted that entire line, you still have the echo line on the catalog/somefilename.php file that will have to be deleted out.

 

Instead of killing off the define completely, you could just leave it blank, ie.

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

to

  define('HEADING_TITLE', '');

Archived

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

×
×
  • Create New...