Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Welcome message on front page


jam583

Recommended Posts

I need to change the welcome message on the front page. I looked all through the admin control panel and couldn't figure it out. Right now it says it's a test cart etc. I need to put my welcome message on it, but cannot figure it out. I searched this forum with no luck. Hope to hear from someone. Thanks!

Jason Miller

www.jamz.net

Link to comment
Share on other sites

If you have the Mainpage contribution installed you can edit the file mainpage.php ( one for each language installed in your shop ) and make it look and say whatever you like. it's just a php/html page.

 

Cheers

Outside links in signatures are not allowed!

Link to comment
Share on other sites

or just go to inlcudes/languages/english/index.php and change the info there:

 

define('TEXT_MAIN',your info here');

 

I got tired of cutting and pasting html into this file so I made a change that allows me to create an index.html file that I can edit in a WYSIWYG editor. I can then design pretty much whatever I want it to look like and not have to worry about hardcoding it into the index.php lang file.

 

Here is what I did:

 

BACKUP FILES FIRST

 

In /index.php find this line:

 

<td class="main"><?php echo TEXT_MAIN; ?></td>

 

and replace it with:

 

<td class="main"><?php require('index.html'); ?></td>

 

Then create an index.html page with all the bells and whistles that you want to show on your mainpage and upload it to the same directory as your /index.php file.

The "require" statement will then call and place the index.html on your mainpage. This will allow you to frquently update the mainpage of your website by just editing one file and uploading it.

 

See it at gogoGrocery.com

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Link to comment
Share on other sites

Not so easy. The content of boxes is dynamicaly created primarily with PHP and queries to the MySql database with very little html other than table and link tags. If you ask a specific question about changing a box from "this" to "that" maybe someone here can help you.

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Link to comment
Share on other sites

Very nice tip Paul on the seperate file for complex html rather than in the text define.

 

However, I'd recommend naming the file something other than index.html. Some webservers may have index.html placed before index.php as the default file to read when going to that directory. Maybe something like mainpg.html would be safer.

 

Thanks again for the tip.

 

Tom

Link to comment
Share on other sites

Edit english.php (catalog/includes/language/english.php) - there U can remove specific boxes (remove all from define to ;)

like that:

define('BOX_HEADING_MANUFACTURERS', 'Manufacturers');

In the same file You can modify boxes by removing some lines or by adding. Of course - if You add box, You have also add suitable file in "boxes" folder :)

 

I hope it's clear for You...

Link to comment
Share on other sites

for removal of boxes from the left or right columns use this method in either catalog/includes/column_left.php or column_right.php

 

require(DIR_WS_BOXES . 'whats_new.php');

 

change to

 

// require(DIR_WS_BOXES . 'whats_new.php');

this is an example another example is this

 

 if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
   include(DIR_WS_BOXES . 'languages.php');
   include(DIR_WS_BOXES . 'currencies.php');
 }

change to this

/*  if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
   include(DIR_WS_BOXES . 'languages.php');
   include(DIR_WS_BOXES . 'currencies.php');
 } */

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

This is beautiful! I wonder why I couldn't find this thread :( Anyway, my question to add to this is:

 

* By creating an HTML main page and having OSC call to it to create something like the example website, will it do that to all the pages or must an HTML page be creating for ALL the pages as well?

 

The main page is what I am concerned about for changing on the fly and will have slightly different info on it and then use a blank template version for the others so OSC will put it's info on there automatically. Hmmmm... I hope someone understands what I mean :P

 

Well, I am off to try it out and see what happens :D

Link to comment
Share on other sites

You can take what Paul has given you and apply it in different areas to affect different pages such as say shipping or privacy etc

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