Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I show sub-sub-categories images?


Guest

Recommended Posts

I am using release 2.1

 

I am adding images on all categories to make my shop look gooood.

 

All is ok, but when I try to:

 

Main category -- sub category -- sub caregory 2

 

Browse in the catalog in "sub category" level, the image from "sub category 2" doesn't show on the top of the products available in "sub category", so the only way to see that "sub category 2" exists, is to check the left panel categories tree and see the "sub categories 2" there. BUT, I think is kinda hard to see it, since that tree doesn't even has bullets or something to improve the visuals of the categories levels.

 

So, the question is: Can I show the "sub category 2" image on the top of the products list in "sub category", just the way that "sub category" images show in the main menu of "Main category"?

 

(Phew!) :)

 

Please help me, thanks a lot.

Link to comment
Share on other sites

So, the question is: Can I show the "sub category 2" image on the top of the products list in "sub category", just the way that "sub category" images show in the main menu of "Main category"?

 

Yes. Edit default.php line 88

 

Change

 

$categories = tep_db_query("select categories_id, categories_name, parent_id from categories where parent_id = '" . $category_links[$i] . "' order by sort_order, categories_name");

 

To

 

$categories = tep_db_query("select categories_id, categories_name, categories_image, parent_id from categories where parent_id = '" . $category_links[$i] . "' order by sort_order, categories_name");

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

  • 2 weeks later...
yep...

 

admin/configuration/product listing/ display product image=1

 

Nope, that's not what I want. I DON'T want to show the PRODUCTS images, but the SUB-CATEGORIES images..

 

Thanks anyway!

Link to comment
Share on other sites

The code edit shown above has been made on the site I have just taken over the maintenance of and works ok. The problem we are having is when you go 4 levels deep it dosn't show the next set of categories.

 

ie: 4 levels deep dosn't work

 

http://www.prosport.uk.com/catalog/default...1122_35_283_284

 

it should show 3 sub catogories of FORD, VAUXHAUL & CITREON

 

but 3 levels deep does work for example:

 

http://www.prosport.uk.com/catalog/default...h=1123_21_22_23

 

Does anyone know why this is happening?

 

Thanks

Link to comment
Share on other sites

Hey Trunks, thanks for the kind words but I didn't customise it like I said I have taken over the maintenance of the site and am trying to sort out the problems it has :(

 

Gonna try deleting and re-creating the problematic area, see if that cures it!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...