Brad Krattiger Posted January 1, 2007 Share Posted January 1, 2007 I am trying to find where to edit the heading on each catagory page. I want the heading under each catagory to have it's own name. Can anyone help? Happy Holidays Link to comment Share on other sites More sharing options...
bill110 Posted January 1, 2007 Share Posted January 1, 2007 one file two places to edit. catalog/includes/index.php about line 19 find if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); and change to if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', $breadcrumb->last()); That will put the catagory name at the top. if there are sub=catagories this needs to be changed also. Same file about line 37 } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); change to something like this: } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Items in this catagory'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Select from one of our "' .$breadcrumb->last(). '" catagories below'); My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
Brad Krattiger Posted January 1, 2007 Author Share Posted January 1, 2007 one file two places to edit.catalog/includes/index.php about line 19 find if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); and change to if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', $breadcrumb->last()); That will put the catagory name at the top. if there are sub=catagories this needs to be changed also. Same file about line 37 } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); change to something like this: } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Items in this catagory'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Select from one of our "' .$breadcrumb->last(). '" catagories below'); Thank you for your reply. But I did not find the index file there. (catalog/includes/index.php) no file there. Should it be catalog/includes/languages/english/index.php ? Or am I miossing something? Thank you- Link to comment Share on other sites More sharing options...
bill110 Posted January 1, 2007 Share Posted January 1, 2007 So sorry. You are correct. catalog/includes/languages/english/index.php once again sorry about that. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
jillbalkus Posted January 2, 2007 Share Posted January 2, 2007 So sorry. You are correct. catalog/includes/languages/english/index.phponce again sorry about that. When I try this, I get the following error: Fatal error: Call to undefined function: last() in /home/fabadmin/public_html/catalog/includes/languages/english/index.php on line 24 Here's my code from the english/index.php page: if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', $breadcrumb->last()); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Brand'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); Help? Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2007 Share Posted March 31, 2007 Bumping this... is that code correct? I'd like to change the same thing. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.