100asa Posted December 6, 2004 Posted December 6, 2004 Why in some page (as product new, specials, login, reviews, etc) I see in the header first section and after Home page? (Login ? Top, New Products ? Top, Specials ? Top, and cart page) Thank you please browse into my website to see this Skype: centoasa Skype: remigioruberto
Jack_mcs Posted December 6, 2004 Posted December 6, 2004 Looks like somebody played with the code. It's not supposed to be that way. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
TomThumb Posted December 7, 2004 Posted December 7, 2004 I would guess one of the contributions you have installed. I would start by looking in /catalog/includes/header.php where it displays the breadcrumb while (!succeed) {try()}; GMT -6:00
100asa Posted December 7, 2004 Author Posted December 7, 2004 Many time ago I've installed one contribution (I don't remember the name): // add category names or the manufacturer name to the breadcrumb trail if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'])); } } // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } Is this the problem? Skype: centoasa Skype: remigioruberto
TomThumb Posted December 8, 2004 Posted December 8, 2004 This is original MS2.2 code. Is this directly above it? // 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)); while (!succeed) {try()}; GMT -6:00
100asa Posted December 8, 2004 Author Posted December 8, 2004 I've only this: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); //$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); I've deleted this line //$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); because my header was "home page> catalog, instead now I've only home page. Skype: centoasa Skype: remigioruberto
100asa Posted December 8, 2004 Author Posted December 8, 2004 I remember, but this change is page cache contribution by Chemo. At this moment I will forward this post to Chemo. Skype: centoasa Skype: remigioruberto
Recommended Posts
Archived
This topic is now archived and is closed to further replies.