Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there a way to display sub category image only?


aussierach

Recommended Posts

Posted

Hey all :)

 

I am so bad with explanations when it comes to OSC but here goes..

 

In subcategory view I would like the customer to see the sub category image only. I don't want the Sub Category name to display below the pic, just the pic which directs to the category. I know I can turn the pic off, but can it be done the other way around?

 

I've scoured around but can't find anything.. not sure I'm using the correct search terminology.

 

Thanks in advance to any fine folk that can answer this question ;)

 

Cheers Rach :D

Posted

Hey Rach,

 

I'm no pro at editing PHp files but I think this should do it.

 

Edit catalog\index.php file around line 73:

 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";

 

What you specifically want to remove is - $categories['categories_name'],

So you should end up with:

 

 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'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a></td>' . "\n";

 

I have not tried this so use at your own risk and make sure you backup the file. ;)

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

No problem. :thumbsup:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Archived

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

×
×
  • Create New...