Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category Name


Guest

Recommended Posts

Hi can anyone help!

I am trying to ger the category name (ie: BEDROOM FURNITURE) to appear at the top of the index.php page (when the products or sub categories are showing), to the left along side the cateory image to eplace the standard "Let`s see what we have here" text.

 

I do not understand to much about php but I have been looking at Includes/Languages/English/index.php and I thing I have to change the line :-

DEFINE('HEADING_TITLE','Lets se what we have here');.

 

But how? or What to?

 

Many Thanks

Tony

Link to comment
Share on other sites

In catalog/index.php find:

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

replace with

 

<td class="pageHeading"><?php echo ($category['categories_name'] ? $category['categories_name'] : HEADING_TITLE); ?></td>

 

B)

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Thanks to all I will take a look and get back to you.

 

Once again Thank you for taking he time to reply.

 

Tony

 

 

 

In catalog/index.php find:

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

replace with

 

<td class="pageHeading"><?php echo ($category['categories_name'] ? $category['categories_name'] : HEADING_TITLE); ?></td>

 

B)

Link to comment
Share on other sites

Hi Sam

 

I have tryed changing the code below but it seems to come up with the same results. I have checked that I am entering it in the correct place by placeing a simply echo there and this works.

 

Any idears ???

 

Tony

 

 

 

 

In catalog/index.php find:

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

replace with

 

<td class="pageHeading"><?php echo ($category['categories_name'] ? $category['categories_name'] : HEADING_TITLE); ?></td>

 

B)

Link to comment
Share on other sites

Just a quick update.

 

I have found a Contribution that seems to work well for me.

 

 

"Cat_descriptions_by_frofi"

 

 

Many Thanks for your help.

 

Tony

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...