Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I add descriptions to categories?


Slipdisc

Recommended Posts

I have done a search and came up with several suggestions but have yet to find anything that works. I want to display a message when a certain category is selected. Every contrib I have found that claims to work, doesn't.

 

If anyone has had this issue or can be of some assistance that would be great.

 

 

I am using:

OSC v2.2 RC2a

Linux 2.6.18-164.15.1.el5PAE

Apache

PHP 5.2.8 (Zend: 2.2.0)

MySQL 5.0.91-log

 

Thank you.

Link to comment
Share on other sites

I have done a search and came up with several suggestions but have yet to find anything that works. I want to display a message when a certain category is selected. Every contrib I have found that claims to work, doesn't.

 

If anyone has had this issue or can be of some assistance that would be great.

 

 

I am using:

OSC v2.2 RC2a

Linux 2.6.18-164.15.1.el5PAE

Apache

PHP 5.2.8 (Zend: 2.2.0)

MySQL 5.0.91-log

 

Thank you.

 

Since you are going to need more than just that, such as Search Engine Optimization, you should install HTC SEO, as it will provide EXACTLY what you are wanting as well as give you what you need for SEO.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Since you are going to need more than just that, such as Search Engine Optimization, you should install HTC SEO, as it will provide EXACTLY what you are wanting as well as give you what you need for SEO.

 

Ok I am attempting to install that. I made it as far as Install_Catalog.txt

 

FIND (Around line 78)

   <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>
  </tr>

  REPLACE with

          <?php /*** Begin Header Tags SEO ***/ ?>
          <td><h1><?php echo $category['categories_htc_title_tag']; ?></h1></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>
         </tr>
          <?php if (tep_not_null($category['categories_htc_description'])) { ?>
         <tr>
          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
          <td colspan="2"><h2><?php echo $category['categories_htc_description']; ?></h2></td>
         </tr>
         <?php } 
         /*** End Header Tags SEO ***/ 
         ?>

 

My /index.php file does not contain anything similar to that. Ideas?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...