Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Basic Getting Started


Guest

Recommended Posts

Hi guys.

 

I have been dabbling with setting up osC to suit my own requirements - no problems so far. I have made changes to the shipping modules and payment modules - again no problems, hey I am even remembering to take regular backups......BUT:

 

I cannot seem to get my head around replacing all the text on the main page with my own. OMG what do I need to do to make the changes correctly. Yeah I read waht it says there and I have used the resources of the admin tools, downloaded a PHP editor from the web, even resorted to using notepad (nightmare) but I still seem to end up removing the wrong piece of code and cocking things up.

 

Is there a fool proof (rob proof) way of editing the defaul welcome text? Am I missing something real basic here?

 

Thanks in advance of your help - anybody!!!

 

Rob :blink:

Link to comment
Share on other sites

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

 

That file can be edited manually. DO NOT use the File Manager to edit this file. Use any editor locally or on your site then ftp it up.

 

The text is set in the following manner:

 

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

 

Remember to "escape" any single quotes with a backslash (ie. don\'t for don't).

 

HTH

Tom

Link to comment
Share on other sites

Hi Rob, I'm pretty much a newby myself. To edit the text on the main page do exactly what they OceanRanch says. What I did was use word andsearched for TEXT_MAIN. This pointed me in the right direction. Of course leave the quotes surrounding the text.

Bryan Broussard

Link to comment
Share on other sites

Hello Tom

 

Thanks for helping out - however, I have got so far but cannot get any further. I have changed the top text but am not sure what to do next and which bits to leave and how to get rid of the rest of the default text. The Link to my site is here should you wish to have a further look - I hope I am allowed to do this.

 

My Webpage

 

Basically I don't want any furrther text between my welcom text and the New Products in March box.

 

Thanks again for your help.

 

Rob ;)

Link to comment
Share on other sites

Line 13 of the file you changed (index.php) contains ALL of the text on the fron page.

 

Start out with

 

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

 

one long line 13.

 

Change it to this

 

define('TEXT_MAIN', 'my text');

 

and you see all of the text disappear, just like you want.

 

Then add your text that you "insert" at the beginning.

 

Your final define statement should be

 

define('TEXT_MAIN', 'Hello and welcome to the New Country Crafts Store. We invite you to take a look at our fantastic selection of craft products available to you at superb web only prices and delivered directly to your door by your choice of Royal Mail delivery options. We use the excellent Paypal credit card payment service, ensuring you the best in online payment security. We hope you enjoy your visit to the New Country Crafts Store and thank you very much for your custom.');

 

HTH

Tom

Link to comment
Share on other sites

BTW as you can see on my site I have made all the corners of the info boxes squared as I will be using a coloured background (maybe) in the final version. All the info boxes that is, except the large 'New Products in March' box. I can't find the correct php file to edit - it doesn't seem to be in the smae 'boxes' directory as the others. Any ideas????

 

I know I am being cheeky here but..... :P

 

Rob

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...