Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding text to each category section


carruthers1

Recommended Posts

i need to place a paragraph of text at the top of each category's page e.g. for "shoes" - a short blurb of what's available, same thing for "hats".

anyone know how i do this? i've been trawling the forums and the documentation but to no avail.

 

thanks.

Link to comment
Share on other sites

This is a sloppy way but you can put this in index.php under the section that displays categories.

 

<?php
if ($cPath == 23) { 
?>
<tr><td>CATEGORY DESCRIPTION</td></tr>
<?php
} if $cPath == 22) {
?>
<tr><td>CATEGORY DESCRIPTION</td></tr><?php
.
.
.
<?php
} if $cPath == 21) {
?>
<tr><td>CATEGORY DESCRIPTION</td></tr><?php
<?php } ?>

 

You have to format the tags to fit in your page and figure out which cPath equals each category, which isn't hard.

 

Thats the basic idea, hope that helps

If I was crafty, this would be a funny signature.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...