Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catagory Page


Brad Krattiger

Recommended Posts

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

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

So sorry. You are correct. catalog/includes/languages/english/index.php

once 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

  • 2 months later...

Archived

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

×
×
  • Create New...