Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing The Intro Text


ChrisHoward

Recommended Posts

Hi,

 

I would like to change the text, "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" to some of my own.

 

Can someone please tell me how to do this, as It is urgently required for a major project.

 

If this is possible please post your replies, many thanks Chris

Link to comment
Share on other sites

You can change the welcome text in the following .php file (mine is named "default.php" whereas yours might be "index.php"---either way works):

 

Find your "www" or "public_html" folder and navigate to the following file...

(I'll use English as an example)

 

shop/includes/languages/english/default.php

 

Once you open your default.php or index .php, scroll to Line 13 (approx.) and you'll see the welcome message text (it will probably be 4 lines in depth). Edit it to your liking but remember to keep the tags INTACT (just be careful while you're editing so you don't delete any tags and you'll be fine). That's it...All there is to it. I'm new to .php/.css and just made this exact change last night, so I thought I'd provide an in-depth approach [for you] to making the change. Personally, I can't stand being "shown" the "wiki" link time and time again (it's lacking in several ways, but useful for the most part :wink: ). Good luck! :D

Link to comment
Share on other sites

Help Please! :( This is what I have, Can anyone tell me what I've done wrong?

 

define('TEXT_MAIN', 'Step back in time....to a time when beauty was legend, Back to the time of Cleopatra....Helen of Troy and the Queen of Sheba.'<b>'Because of our extensive research, precious oils and herbs revered for thousands of years, are now available to you'</b>. 'These are the natural beauty secrets you will find here.'<br><br>'Come in to Lady Shivas and discover your Diva<b>.

');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || ($HTTP_GET_VARS['manufacturers_id']) ) {

define('HEADING_TITLE','Welcome to Lady Shiva's Aroma Garden');

 

 

This is what I get:

 

HEADING_TITLE

 

 

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

TEXT_MAIN

Link to comment
Share on other sites

Try changing to this:

define('TEXT_MAIN', 'Step back in time....to a time when beauty was legend, Back to the time of Cleopatra....Helen of Troy and the Queen of Sheba.<b> Because of our extensive research, precious oils and herbs revered for thousands of years, are now available to you. </b> These are the natural beauty secrets you will find here.<br><br>Come in to Lady Shivas and discover your Diva<b>. 

');

All your formating can be included in the ' ', i.e. <b>,<br>, etc.

Link to comment
Share on other sites

Try replacing your text with something simple, say 'text'. That way you can see if its something to do with the text you're trying to add (although I can't see anything) or if the problem is somewhere else.

Link to comment
Share on other sites

define('TEXT_MAIN'= <b>'Step back in time<b>.

');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || ($HTTP_GET_VARS['manufacturers_id']) ) {

define('HEADING_TITLE','Welcome to Lady Shiva's Aroma Garden');

 

This is what I tried and it still doesn't show up, thanks for trying to help me. :roll:

Link to comment
Share on other sites

Thanks but if I knew how I would have already started over. Sorry but I'm a newby following the instructions I have and unfortuneately it's not working for me. :cry:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...