Guest Posted December 31, 2005 Share Posted December 31, 2005 :blink: I wanted to display the name of the product instead of it's model at the end of my breadcrumbs.. to do this I modified the application_top.php file by replacing: // 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'])); } } with // add the products name to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $name_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($name_query)) { $name = tep_db_fetch_array($name_query); $breadcrumb->add($name['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } :D Link to comment Share on other sites More sharing options...
polarduality Posted March 3, 2006 Share Posted March 3, 2006 Thanks much! :) The model name in the breadcrumb was annoying me! Link to comment Share on other sites More sharing options...
andytc Posted March 5, 2006 Share Posted March 5, 2006 Thanks for that !! :) Link to comment Share on other sites More sharing options...
Guest Posted March 17, 2006 Share Posted March 17, 2006 Great little mod. Thanks!! :) Link to comment Share on other sites More sharing options...
crowseed Posted March 28, 2006 Share Posted March 28, 2006 Nice one - thanks Link to comment Share on other sites More sharing options...
tkeats Posted April 5, 2006 Share Posted April 5, 2006 Awesome, I like. I really need to backup before I loose all this nice stuff I've added... Thomas A signature is something that reflects its user. - The dictionary The question is not, 'to code, or not to code' the question is, 'if we do not code, are we really alive?' -- anonymous Link to comment Share on other sites More sharing options...
vox Posted May 6, 2006 Share Posted May 6, 2006 Excellent ! Thanks very much. Link to comment Share on other sites More sharing options...
vox Posted May 13, 2006 Share Posted May 13, 2006 Anyone know how to enable this for multi-language support. It works like a dream in english but only displays the "english" product name when viewed in german, where a "german" product name exists ? Link to comment Share on other sites More sharing options...
♥stubbsy Posted May 15, 2006 Share Posted May 15, 2006 nice one, very useful :) Link to comment Share on other sites More sharing options...
vox Posted May 15, 2006 Share Posted May 15, 2006 If you also need multi-language support inlcuded there is a contrib here: http://www.oscommerce.com/community/contributions,1554/ Link to comment Share on other sites More sharing options...
insomniac2 Posted May 15, 2006 Share Posted May 15, 2006 You could also download and install the Product Name in navigation bar mod ... which allows admin to set whether to show name or model. It is fully language compatible. Link: http://www.oscommerce.com/community/contri...rch,name+in+nav Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.