Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dynamic Subcategory Heading / Title Help


Guest

Recommended Posts

I was able to change the code so that when a user clicks into a category the category name displays on the proceeding page. I can't get it to work for subcategory pages.

 

Example:

 

http://www. johnmag4u .com/catalog/ [Remove the spaces before and after 'johnmag4u', I don't want google to crawl this site]

 

Click 'Hardware/Parts' in the menu on the left.

You will see the category name correctly displays at the top of the page.

 

Now click into any subcategory, such as 'Barebone'...right now where the word 'TEST' is displayed, I would like the name of the subcategory, such as 'Barebone' to be displayed.

 

Any help would be greatly appreciated. Thanks in advance!

Link to comment
Share on other sites

Solution:

 

Around line 58 find:

 

if ($category_depth == 'nested') {

 

Change to:

 

if ($category_depth == 'nested' || $category_depth != 'nested' ) {

 

Yes, this defeats the purpose of having the IF statement, but I don't know why it was an IF to begin with.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...