Heatherbell Posted March 15, 2019 Posted March 15, 2019 Want to change breadcrumb to show products name instead of model in includes/application top but no success changing code. What should this be changed to? // add the products model to the breadcrumb trail if (isset($_GET['products_id'])) { if ( defined('MODULE_HEADER_TAGS_PRODUCT_TITLE_SEO_BREADCRUMB_OVERRIDE') && (MODULE_HEADER_TAGS_PRODUCT_TITLE_SEO_BREADCRUMB_OVERRIDE == 'True') ) { $model_query = tep_db_query("select coalesce(NULLIF(pd.products_seo_title, ''), NULLIF(p.products_model, ''), 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 . "'"); } else { $model_query = tep_db_query("select coalesce(NULLIF(p.products_model, ''), 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 . "'"); } if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link('product_info.php', 'cPath=' . $cPath . '&products_id=' . $_GET['products_id'])); } }
puddlec Posted March 15, 2019 Posted March 15, 2019 in the admin goto modules > header tags -> product title then set SEO Breadcrumb Override? to true Phoenix support now at https://phoenixcart.org/forum/ App created for phoenixTinyMCE editor for admin
Recommended Posts
Archived
This topic is now archived and is closed to further replies.