Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'breadcrumb.php'


Guest

Recommended Posts

Posted

I've searched through the site, but can't find the 'breadcrumb.php' module anywhere. For whatever reaseon, its not in my setup, yet the program is seraching for it. Am I missing something here? Where can I download it?

Posted

it is sued to control the thing that shows like Top> Catalog> Category> Product

Posted

That's where I figured it should be, but it does not exist in either the admin or catalog class folders. Should it have been in the original download/install. Can I get the file anywhere?

Posted

This is the error I get:

 

Warning: main(includes/classes/breadcrumb.php) [function.main]: failed to create stream: No such file or directory in /hsphere/local/home/calderwo/euro-pacific.com/catalog/includes/application_top.php on line 481

 

Fatal error: main() [function.main]: Failed opening required 'includes/classes/breadcrumb.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/calderwo/euro-pacific.com/catalog/includes/application_top.php on line 481

Posted

you could redownload the version you are using and just take the breadcrumb file out of that zip, or if you still have your original zip take it out of there.

 

I think it's a rather generic class, so it's probably mostly the same across all the versions.

Posted

while we are talking about breadcrumbs...

 

where the hell is "Top" found? i'd like to take it out so only Catalog shows in first place :?

Designrfix.com | Graphic Design Inspiration & Web Design Resources - @designrfix
Posted

hehe...

 

I did that in mine too :D

 

but do this...

 

in includes/application_top.php locate

 

// include the breadcrumb class and start the breadcrumb trail

 require(DIR_WS_CLASSES . 'breadcrumb.php');

 $breadcrumb = new breadcrumb;



 $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

and either comment out (with //) or delete the line:

$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

 

now.. you might notice that on the start page where it normally says What's New Here or whatever that is set to it just says HEADING_TITLE.

open includes/language/english/index.php and the part where it's

} elseif ($category_depth == 'top') {

 define('HEADING_TITLE', 'New Stuff');

 

make it

} elseif ($category_depth == '') {

 define('HEADING_TITLE', 'New Stuff');

 

the other thing you might also consider doing (I did this to be safe) is

make that thing in english/index.php

} elseif ($category_depth == 'catalog_top') {

 define('HEADING_TITLE', 'New Stuff');

 

and then go into <catalog_root>/index.php and locate

// the following cPath references come from application_top.php

//  $category_depth = 'top';

 $category_depth = '';

 

and make it

// the following cPath references come from application_top.php

//  $category_depth = 'top';

 $category_depth = 'catalog_top';

Archived

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

×
×
  • Create New...