rberman_online Posted April 7, 2004 Posted April 7, 2004 If this has been asked before I apologize. I'm a new user to osCommerce and PHP but I'm still attempting to modify the shopping cart to look like my existing site. My problem: I'm using two frames to display the page. The top frame contains the logo and navigation and the lower frame is the content. One of the navagation buttons opens the shopping cart in the lower frame. All is good to this point. When I click on the "Top" breadcrumb navigation link, it opens my index.htm page into the lower frame, essentially duplicating the upper and lower frames into the lower frame. I looked at the header.php file and found (I think) that the link is being created by a variable ($breadcrumb) in this line: <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?> </td> My question: How do I change the link to a different file (i.e. home.htm) without losing the breadcrumbs? Any help would be greatly appreciated, Robert Berman
sosidge Posted April 7, 2004 Posted April 7, 2004 I think the code you're looking for is in includes/application_top.php, around line 471. Default would look a bit like this... $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); This defines where clicking on the first two links in the breadcrumb trail ("Home" and "Catalog") take you. As it stands, Home goes to your root directory, Catalog to the osCommerce directory. To make Home ALSO go to the osCommerce directory (I think this is what you want), change to... $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT)); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); Or modify those lines to do what you want them to. Hope that helps. - osCommerce is fun! -
rberman_online Posted April 7, 2004 Author Posted April 7, 2004 Thank you for the help, it worked just as I hoped. Rob
Recommended Posts
Archived
This topic is now archived and is closed to further replies.