osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

NEWBIE: File Locations

This is a discussion on NEWBIE: File Locations within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; So i did try searching for info on this but couldn;t find it. I am very familiar with php and ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-23-2005, 05:58 PM
New Member
 
Join Date: Jul 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adamr415
Default NEWBIE: File Locations

So i did try searching for info on this but couldn;t find it. I am very familiar with php and am comfortable editing source code, but I cant find where the code is I need.

First is the code for the homepage. Where is the greeting text saved? I want to add some custom stuff there but only see a place in the backend to edit it.

Where is the product info html? I want to make some slight variations on it and don't see where the code is.

I guess this goes for a lot of the content of OSCMAX. Is there some hidden place for it? I searched the main catalog directory, includes, languages, all of that.

THANKS IN ADVANCE!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-23-2005, 08:07 PM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default RE: NEWBIE: File Locations

almost every page has a template portion tucked away in:

templates/fallback/content/

you can add a content directory to any template, and if that template is being used, any template files found there will be used, if a certain template file is not found in a specific template's content directory, the one in fallback will be used.

The file you are looking for is here:

includes/languages/english/mainpage.php

However you will probably want to create a completely new file I presume... in this case you will want to change the following line in:

templates/{template_you_are_using or fallback}/content/index_default.tpl.php

line (25):

<td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td>

here you will have to either simply replace FILENAME_DEFINE_MAINPAGE with my_main_page.php (presuming you put it in the same directory as mainpage.php) or you should actually probably define your new page's name in:

includes/filenames.php

--gabe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Newbie needs some help please countingsheep osCMax v2 Installation issues 0 03-30-2006 06:07 AM
Multiple Shipping Locations ReginaStelling osCommerce 2.2 Modification Help 1 01-29-2005 12:59 PM
HELP NEWBIE HERE!!!!!!! handysf osCMax v1.7 Discussion 1 01-14-2004 10:27 PM
Newbie Needs help. latahani osCommerce 2.2 Modification Help 1 02-26-2003 07:32 AM
Newbie: Product attributes and file renaming celtic osCommerce 2.2 Modification Help 2 01-01-2003 07:20 AM


All times are GMT -8. The time now is 11:55 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax