Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there a way to add the Sub-catagory title to a page?


chimol

Recommended Posts

I can see on my catagory page that it has the icons and names of the sub-catagories, but when you click on one of the sub catagories there isn't a name

at the top of the page. Is there an easy way to "call" the name of the sub-catagory to the top of the page? Or, am I missing something? Thanks all!

Steve

I appreciate all the help that everyone on this site has given me!

Link to comment
Share on other sites

I can see on my catagory page that it has the icons and names of the sub-catagories, but when you click on one of the sub catagories there isn't a name

at the top of the page. Is there an easy way to "call" the name of the sub-catagory to the top of the page? Or, am I missing something? Thanks all!

hello

 

when you make a sub-catagory you give it a title that is if you are doing it from your admin and that should take care of it

 

catagories/Products

all you do is pick the catagorie the and new catagorie and that should do it

that will make a new catagorie under the catagorie you picked making a sub catagorie

Hope it helps

Link to comment
Share on other sites

hello

 

when you make a sub-catagory you give it a title that is if you are doing it from your admin and that should take care of it

 

catagories/Products

all you do is pick the catagorie the and new catagorie and that should do it

that will make a new catagorie under the catagorie you picked making a sub catagorie

Hope it helps

 

I understand that part of the issue, I can name my sub-catagories, but when you click on one of them to go into it, there just seems like some wasted space at the top of the menu (also, there is an icon for the catagory off in the corner), I'd just like to know how hard it would be to have the sub-catagories name appear up in the open space.

 

Notice the empty space at the top and the icon off on the side

Steve

I appreciate all the help that everyone on this site has given me!

Link to comment
Share on other sites

In the HTML source you'll see this:

 

			<td class="pageHeading"></td>
		<td align="right"><img src="images/1.jpg" border="0" alt="" width="100" height="100"></td>

Finding that in your index.php code would be:

 

			<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

Which leads you to /catalog/includes/languages/english.php for the definiion for HEADING_TITLE

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', 'Let\'s See What We Have Here');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}

(Condensed)

 

At least that's how "vanilla" osC works.

 

It looks like you have some sort of "ready made template".

 

Either it doesn't work this way, or you've accidentally altered something to prevent it from showing.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

In the HTML source you'll see this:

 

			<td class="pageHeading"></td>
		<td align="right"><img src="images/1.jpg" border="0" alt="" width="100" height="100"></td>

Finding that in your index.php code would be:

 

			<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

Which leads you to /catalog/includes/languages/english.php for the definiion for HEADING_TITLE

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', 'Let\'s See What We Have Here');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}

(Condensed)

 

At least that's how "vanilla" osC works.

 

It looks like you have some sort of "ready made template".

 

Either it doesn't work this way, or you've accidentally altered something to prevent it from showing.

:blush:

 

Thanks for the info, I'll look through some of the code this week and see if I can figure it out. At least I have a starting

point for where to look.

Steve

Steve

I appreciate all the help that everyone on this site has given me!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...