Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php texts


Guest

Recommended Posts

I am a newbie! :)

 

I wanna change the text from the index.php but I did not find it.

 

This:

 

"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. "

Link to comment
Share on other sites

The error messages are there to help you ensure your site is secure.

 

The error messages will go away one you have CHMOD'ed the correct files.

 

Alternativley to edit the warning messages you can edit them in Application_top.php or header.php.

 

One of those files will have the warning messages

 

Regards

 

Rich :rolleyes:

Link to comment
Share on other sites

If you have the warnings then chmod the admin/includes/configure.php file to 644 or 444 also chmod the catalog/includes/configure.php file to 644 or 444.

 

Once this is done you then need to edit the catalog/includes/languages/english/index.php at line 13

 

the index.php edit has to be done offline with an editor, saved and uploaded.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

By you can't find it do you mean you can't find where the file is?

 

If that's the case look in

//includes/languages/english/index.php

 

Oh and good luck with trying to change it. if you look at any of my posts the past few days i have been trying to no avail. i still get a parse error every single time. check through your index document that when it says let's see you need a / or a \ before the ' on all the comments in there apparantly. mine just came without them in and i think that could be one of the many parse errors.

Link to comment
Share on other sites

Once this is done you then need to edit the catalog/includes/languages/english/index.php at line 13

 

the index.php edit has to be done offline with an editor, saved and uploaded.

Is this the standard procedure. Just remove line 13 to remove all the instructions in the index.php.

Link to comment
Share on other sites

Is this the standard procedure. Just remove line 13 to remove all the instructions in the index.php

 

No you do not just remove line 13

 

Below you can see how my text differs from the standard text

 

define('TEXT_MAIN', 'This is a unique opportunity to participate in a brand new ventures company, as it embarks on the waves of cyberspace.');

 

as you can see the first part needs to stay

 

define('TEXT_MAIN', '

then enter your text and end with

');

 

so that if you want no text then this is what you need as a minimum

 

define('TEXT_MAIN', '');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...