Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do i get rid of this


bgalloway

Recommended Posts

Posted

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 Knowledge Base site.

 

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

Posted

As far as the errors go , we would need to know what they are (paste them here).

 

To get rid of the text you pasted, the answer is in the text:

 

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', '');

 

Don't use the osC admin tool to edit the text, though. Get a good plain text editor like Textpad. It's free...you'll find a lot of other recommendations for text / php editors around this forum. Even notepad will work OK.

Posted
As far as the errors go , we would need to know what they are (paste them here).

 

To get rid of the text you pasted, the answer is in the text:

Don't use the osC admin tool to edit the text, though. Get a good plain text editor like Textpad. It's free...you'll find a lot of other recommendations for text / php editors around this forum. Even notepad will work OK.

 

 

WHAT SHOULD IT LOOK LIKE when i did it it comes up with error on line 13 so now i need some help with how it should look i'm new at this and setting up a store front but when you go to the main page i get this message on the screen

Posted

It's within this area of text in your includes/languages/english/index.php file that you place any text you want to appear at the top of your homepage:

 

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

 

When you replace that text then any other text you enter which uses apostrophies must have those apostrophies escaped with a preceeding backlash, or else you'll get a parse error. As in:

 

Let's = wrong

Let\'s = right

 

Replace that file with an original (unedited) copy and start again. This time, download it via FTP and edit it in a plain text editor like NotePad, Text Pad, or Crimson Editor. Don't use Word or WordPad - they are not plain text editors.

 

The text you input starts with this:

 

define('TEXT_MAIN', '

 

and ends with this:

 

');

 

Vger

Posted
Don't use the osC admin tool to edit the text, though. Get a good plain text editor like Textpad.

 

I have seen it before. Why is that the osC admin tool can't be used to edit the text?

Posted
I have seen it before. Why is that the osC admin tool can't be used to edit the text?

there was a bug with the older osc version of file manager. With the new one now it works but it inserts extra lines in the file content, best to use an external regular text editor.

Archived

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

×
×
  • Create New...