jamo32 Posted September 28, 2016 Share Posted September 28, 2016 Hi All I am using bootstrap OS I want to change the breadcrumb links which appear on the top of a product page , the bit I want to change is from the product model number to the product title. Many Thanks Using Bootstrap 8-) Link to comment Share on other sites More sharing options...
♥raiwa Posted September 28, 2016 Share Posted September 28, 2016 Hello Jim @@jamo32, If your version is newer check if you have this option in: Admin => Modules => Header Tags => Product Title => SEO Breadcrumb Override? and set it to "true" Then you need to do a small fix in includes/application_top.php: Find: $model_query = tep_db_query("select coalesce(NULLIF(pd.products_seo_title, ''), p.products_model) as products_model from products p, products_description pd where p.products_id = '" . (int)$_GET['products_id'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); and change to: $model_query = tep_db_query("select coalesce(NULLIF(pd.products_seo_title, ''), pd.products_name) as products_model from products p, products_description pd where p.products_id = '" . (int)$_GET['products_id'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); Without this change, the model is still used if the SEO Product Title is left blank. It seems this is a small bug, please confirm. If your version is GOLD or an older EDGE version and you do not have the overwrite option in the Header Tag, do the following change in application_top.php: Find: $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'])); } and change to: $model_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($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } rgds Rainer About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.