jam583 Posted February 15, 2004 Posted February 15, 2004 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
♥yesudo Posted February 15, 2004 Posted February 15, 2004 what's your site? Your online success is Paramount.
♥yesudo Posted February 15, 2004 Posted February 15, 2004 is it admin - catalog - define mainpage? Your online success is Paramount.
jam583 Posted February 21, 2004 Author Posted February 21, 2004 http://host.jamz.net/%7Ewhite/store/ The first page you see that says "Whats new here". I need to change that text and cannot figure it out. Please help. Thanks. Jason Miller www.jamz.net
Tomcat Posted February 21, 2004 Posted February 21, 2004 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!
ptrau Posted February 21, 2004 Posted February 21, 2004 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!!!"
kcount Posted February 21, 2004 Posted February 21, 2004 will this also work for those goofy infoboxes? kevin
ptrau Posted February 21, 2004 Posted February 21, 2004 What do you mean? "Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"
kcount Posted February 21, 2004 Posted February 21, 2004 in the two colomns on either side there are several boxes..by default I believe they are products, search, maufacturers...etc. Can you reference a HTML file for the layout of these fields also? kevin
ptrau Posted February 21, 2004 Posted February 21, 2004 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!!!"
kcount Posted February 21, 2004 Posted February 21, 2004 Fair enough.. how about a different approach. Is there a way to remove specific boxes? In my case "Manufacturers" and "whats new" while modifying others like 'information'? Kevin
OceanRanch Posted February 21, 2004 Posted February 21, 2004 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
Aneczka Posted February 21, 2004 Posted February 21, 2004 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...
241 Posted February 21, 2004 Posted February 21, 2004 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! Is your Osc dated try Phoenix raising oscommerce from the ashes.
findtim Posted February 29, 2004 Posted February 29, 2004 thanks ptrau such an obvious thing but great to see it pop up infront of me, i really appreciate the time everyone spends giving these hits and as i progress i hope to do the same. tim
Guest Posted March 2, 2004 Posted March 2, 2004 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
ptrau Posted March 2, 2004 Posted March 2, 2004 only the main page will be affected "Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"
241 Posted March 2, 2004 Posted March 2, 2004 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! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.