Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SOMEONE PLEASE HELP - I'M GOING NUTS NOW!!!!!!


roadrunner678

Recommended Posts

So here's the deal: I have set up six categories - each listed in the Catagory Box (cranesonnet.com). The default default heading title says, "Let's See What We have Here" (which BTW, is totally lame). Anyway, I would like to create a different heading title for each catagory page. For example, for manual hoist, I want the heading title to say "Manual Hoist" and for Air Hoist I want the heading title to say "Air Hoist" Can anybody tell me how to do this??? PLEEEEZZZZZE!!!!

 

A million thank you's in advance for anyone who can tell me. Please send me an E-mail at [email protected]

 

Kathy

Link to comment
Share on other sites

http://www.oscommerce.com/community/contributions,207

Header tags controller will do that and add your meta tags as well as allow you to have category descriptions. Best contribution for all around use I think.

 

Display Category Name In Main Content

http://www.oscommerce.com/community/contributions,1954

 

There are also contributions to change your page title at the top of the browser if you just want to install things seperately or already have a meta tag contribution installed but as I said, header tags controller does it all.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

So here's the deal: I have set up six categories - each listed in the Catagory Box (cranesonnet.com). The default default heading title says, "Let's See What We have Here" (which BTW, is totally lame). Anyway, I would like to create a different heading title for each catagory page. For example, for manual hoist, I want the heading title to say "Manual Hoist" and for Air Hoist I want the heading title to say "Air Hoist" Can anybody tell me how to do this??? PLEEEEZZZZZE!!!!

 

A million thank you's in advance for anyone who can tell me. Please send me an E-mail at [email protected]

 

Kathy

 

Kathy,

 

In your (catalog)/includes/languages/english/index.php (and/or other languages you use) you can change

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', 'Let\'s See What We Have Here');
 define('TABLE_HEADING_IMAGE', '');
 define('TABLE_HEADING_MODEL', 'Model');
 define('TABLE_HEADING_PRODUCTS', 'Product Name');
 define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
 define('TABLE_HEADING_QUANTITY', 'Quantity');
 define('TABLE_HEADING_PRICE', 'Price');
 define('TABLE_HEADING_WEIGHT', 'Weight');
 define('TABLE_HEADING_BUY_NOW', 'Buy Now');
 define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
 define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
 define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
 define('TEXT_SHOW', '<b>Show:</b>');
 define('TEXT_BUY', 'Buy 1 \'');
 define('TEXT_NOW', '\' now');
 define('TEXT_ALL_CATEGORIES', 'All Categories');
 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');
}

to (be aware that you see my translations so keep your own and only look at the $breadcrumb->last() part which does the trick).

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 if (isset($HTTP_GET_VARS['manufacturers_id'])) {
define('HEADING_TITLE', 'Article(s) for article group ' . $breadcrumb->last() . '<BR><SPAN class="smallText">(You can sort on price and article name by clicking the column header name)</SPAN>');
 } else {
define('HEADING_TITLE', 'Article(s) for category ' . $breadcrumb->last() . '<BR><SPAN class="smallText">(You can sort on price and article name by clicking the column header name)</SPAN>');
 }
 define('TABLE_HEADING_IMAGE', '');
 define('TABLE_HEADING_MODEL', 'ArticleID');
 define('TABLE_HEADING_PRODUCTS', 'Article Name');
 define('TABLE_HEADING_MANUFACTURER', 'Article Group');
 define('TABLE_HEADING_QUANTITY', 'Stock');
 define('TABLE_HEADING_PRICE', 'Price');
 define('TABLE_HEADING_WEIGHT', 'Weight');
 define('TABLE_HEADING_BUY_NOW', 'Buy Now');
 define('TEXT_NO_PRODUCTS', 'There are no articles to list in this category.');
 define('TEXT_NO_PRODUCTS2', 'There are no articles to list for this group.');
 define('TEXT_NUMBER_OF_PRODUCTS', 'Number of articles: ');
 define('TEXT_SHOW', '<b>Show:</b>');
 define('TEXT_BUY', 'Buy 1 \'');
 define('TEXT_NOW', '\' now');
 define('TEXT_ALL_CATEGORIES', 'All article categories');
 define('TEXT_ALL_MANUFACTURERS', 'All article groups');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', '<DIV ALIGN="center">Welcome to the \'Wheel of Time\' WebShop</DIV>');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Sub-categories for ' . $breadcrumb->last());
}

and to your (catalog)/includes/classes/breadcrumb.php add the following

	function last() {
		$trail_size = sizeof($this->_trail);
	return '<font color="maroon">' . $this->_trail[$trail_size-1]['title'] . '</font>';
}

just below

  class breadcrumb {
var $_trail;

Again, disregard the <font> tags as they are my own addition to this or use with another color if it fits your site also.

 

HTH

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...