Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove some things from the index.php


thelooksalon

Recommended Posts

Posted

Hello, and thanks for reading my post! I have browsed the forums for an hour and found the answers to many of my questions, but I have one final one that I was unable to find a remedy for.

 

My issue is this: I want to remove the default stuff that come when you install this excellent program. However, when I follow the instructions in the manual, it does not work for me. What I am doing is going to the admin control panel, then file manager, then going to the index.php located in includes/languages/english. If I change even one character, as simple as adding a "space" it gives me this error:

 

"Parse error: syntax error, unexpected T_STRING in /www/t/thelooksalon/shop/htdocs/includes/languages/english/index.php on line 13"

 

Here is a link to the site: http://shop.thelooksaloncatalog.com/

 

Any help would be greatly appreciated, and I will continue to check the forums for an answer.

 

Here is what I would like to eventually remove:

 

"his is a default setup of the osCommerce project, products shown are for demonstrational purposes, any products purchased will not be delivered nor will the customer be billed. Any information seen on these products is to be treated as fictional.

 

Error Messages

 

If there are any error or warning messages shown above, please correct them first before proceeding.

 

Error messages are displayed at the very top of the page with a complete background color.

 

Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.

Editing Page Texts

 

The text shown here can be modified in the following file, on each language basis:

 

[path to catalog]/includes/languages/english/index.php

 

That file can be edited manually, or via the Administration Tool with the Languages->English->Define or Tools->File Manager modules.

 

The text is set in the following manner:

 

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

 

The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:

 

define('TEXT_MAIN', '');

 

More information concerning the PHP define() function can be read here.

Securing The Administration Tool

 

It is important to secure the Administration Tool as there is currently no security implementation available.

Online Documentation

 

Online documentation can be read at the osCommerce Wiki Documentation Effort site.

 

Community support is available at the osCommerce Community Support Forums site."

Posted

What I've been told is that I should download the file I want to edit, make the changes locally using a text editor, and then upload the file back to the site, intead of editing it directly using the file manager.

 

It seems that when you use the file manager, it does not always save the code correctly.

 

Cathi

Archived

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

×
×
  • Create New...