Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories Title


capsulas

Recommended Posts

Alo Everyone !

 

I have a little trouble, but now I dont know how can I do?

 

Trobule

I lose in every category the title, I dont know in wich file, function or admin section manage the title... any ideas

titulo.jpg

 

Thanks in advance

Link to comment
Share on other sites

look in catalog/product_info.php - you should have the code listed below:

 

$product_check = tep_db_fetch_array($product_check_query);

 

 

 

under that line add this:

 

$categories_name_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id left join " . TABLE_CATEGORIES . " c on p2c.categories_id = c.categories_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

 

$category = tep_db_fetch_array($categories_name_query);

 

 

then find this code:

 

if (tep_not_null($product_info['products_model'])) {

$products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';

} else {

$products_name = $product_info['products_name'];

}

 

 

and change it to read this:

 

if (tep_not_null($product_info['products_model'])) {

$products_name = '<span class="pageHeading">' . $category['categories_name'] . '</span><br>' . $product_info['products_name'] . '<br><span class="smallText">' . $product_info['products_model'] . ' </span>';

} else {

$products_name = '<span class="pageHeading">' . $category['categories_name'] . '</span><br>' . $product_info['products_name'];

}

 

 

let me know if that works for you!

Link to comment
Share on other sites

In index.php under catalogs/include/languages/(your language) make this change

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

/* define('HEADING_TITLE', 'Let\'s See What We Have Here'); comment this line out and replace it with the following */

define('HEADING_TITLE', $categories['categories_name'] );

 

 

Good luck.

Link to comment
Share on other sites

In index.php under catalogs/include/languages/(your language) make this change

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

/* define('HEADING_TITLE', 'Let\'s See What We Have Here'); comment this line out and replace it with the following */

define('HEADING_TITLE', $categories['categories_name'] );

Good luck.

 

This one works smoothly... thanks!!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...