Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help removing category descriptions...


Guest

Recommended Posts

Posted

Hey all -

 

I have a cell phone accessory shop, and as the category's i have the images of the cellular carriers. Below is the actual category description.

 

I'm trying to remove the description from this page:

Trash these descriptions

 

While at the same time keeping the descriptions for this page.

Keep these descriptions

 

Has anyone done something like this before, or do *you* know how to acheive this?

 

Thanks!

 

Tim

pocketGEAR.ca

Posted

Figured this out. I found this thread, Softex had the answer in another thread,

 

He put a solution to take the images out of the categories list:

 

Anybody wants to deep-six the cartoonish subcategory images (and leave just the names) here's how:

Go to approx line 106 in default.php and copy the line ...

echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

... open a space and paste it below and comment // out the first line
Then cut the image code out of the new second line ...

. tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT)

That leaves you with just the subcategory names (no cartoons) ...

echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></td>' . "\n";

I suppose one could create a (javascript) select box, or change the text style, but I think they look OK as they are. Or maybe just get rid of the names entirely and stick with the category box only

-Dave

 

I left the images in, but took this out:

 

. $categories['categories_name']

Hope it helps someone else..

Archived

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

×
×
  • Create New...