Guest Posted October 16, 2002 Share Posted October 16, 2002 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 More sharing options...
Mark Evans Posted October 16, 2002 Share Posted October 16, 2002 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 More sharing options...
Guest Posted October 25, 2002 Share Posted October 25, 2002 I am now using release 2.2 Can this be done on 2.2? Thanks!! Link to comment Share on other sites More sharing options...
Guest Posted October 25, 2002 Share Posted October 25, 2002 yep... admin/configuration/product listing/ display product image=1 Link to comment Share on other sites More sharing options...
Guest Posted October 25, 2002 Share Posted October 25, 2002 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 More sharing options...
Tripwire Posted October 30, 2002 Share Posted October 30, 2002 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 More sharing options...
Guest Posted October 30, 2002 Share Posted October 30, 2002 Hey, cool site Tripwire! How did you do it? How can you show sub categories images? Could you please share the code? Thanks!! Link to comment Share on other sites More sharing options...
Tripwire Posted October 30, 2002 Share Posted October 30, 2002 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.