Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unwanted text on front page


mshamou

Recommended Posts

Hi,

 

I need your help urgently,

 

I could not get ride of the demonstration message on the front page, I tried to follow the instructions but still couldn't do it, the last time I tried it I messed my files seriously and started getting error message, now I lack the courage to try again, can any body help? I want to get ride of the whole text below this line. Mo

 

((This 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.

 

If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the support site of osCommerce. This shop is running on osCommerce version osCommerce 2.2-MS2))

Link to comment
Share on other sites

What you are looking for is in includes/languages/english/index.php

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, blah,blah ');

 

You will see that the actual text is enclosed by 'text'. Do not touch anything outside of those quotes. You can put whatever you like inside there as per html, with regard to the fact that it is inside a php variable.

 

If you want to use links, tags, etc, just have a look at how it is already done elsewhere.

Link to comment
Share on other sites

Complete newbie here! I want to know where this mysterious Administration Tool is. I got my oscommerce via Siteground (installed by Fantastico) - i.e. I have nothing installed directly on my own computer- and have no idea where to find this seemingly very-useful-to-newbies tool. I can see the same page quoted above (although I've disabled it for the moment because my front page from yahoo looks better if customers come around while I'm getting this thing set up.)

 

Do I need it as a newbie? Or can I set this all up somehow through siteground?

 

Jennifer

Link to comment
Share on other sites

What you are looking for is in includes/languages/english/index.php

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, blah,blah ');

 

You will see that the actual text is enclosed by 'text'. Do not touch anything outside of those quotes. You can put whatever you like inside there as per html, with regard to the fact that it is inside a php variable.

 

If you want to use links, tags, etc, just have a look at how it is already done elsewhere.

 

Hello,

 

Thank you for trying to help, but still it doesn't work, in fact I messed up my files again and got myself in trouble, I just do not know what to do, this is taking too long now (3 weeks and I still cannot sort it out). Mo

Link to comment
Share on other sites

What you are looking for is in includes/languages/english/index.php

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, blah,blah ');

 

You will see that the actual text is enclosed by 'text'. Do not touch anything outside of those quotes. You can put whatever you like inside there as per html, with regard to the fact that it is inside a php variable.

 

If you want to use links, tags, etc, just have a look at how it is already done elsewhere.

 

Hello,

 

Thank you for trying to help, but still it doesn't work, in fact I messed up my files again and got myself in trouble, I just do not know what to do, this is taking too long now (3 weeks and I still cannot sort it out). Mo

Link to comment
Share on other sites

The 2 things that I can think of that you are doing wrong is either accidently losing some other bit of code or putting html tags into the define that are being rendered by php. There are rules on how html tags can go into php statements and these rules can and do differ from the standard html.

 

Why not copy your original TEXT_MAIN in its entirety and the text you want inserted into a notepad file and send it over to me via my email address on file and I will insert it for you.

 

Also, why not send me a copy of the way you tried to do it and I'll see whats going wrong for you for future reference

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...