Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modify HEADING_TITLE to show category info


jhdesign

Recommended Posts

There is a category description contribution out there.

 

But I'd like to use it to show category description where the HEADING_TITLE shows "Lets see what we have here"

 

Has anyone does something similar to this and can share the code or assist me?

 

There is actually an older contribute for this, but some of the code it asks to modify is not to be found, it may be too old.

 

Appreciated.

Link to comment
Share on other sites

Not sure if this is what you are after this places the categories as titles

 

in catalog/includes/languages/english/index.php at the bottom is this code

 

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}

 

change to

 

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
define('HEADING_TITLE', $categories['categories_name']);
}

 

 

and change

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', 'Let\'s See What We Have Here');

 

 

to this

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', $categories['categories_name']);

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...