Da'Onath Posted October 30, 2002 Share Posted October 30, 2002 For instance, the category below (with products in it) also has sub-categories: http://beddingbox.com/catalog/default.php?...?cPath=21_25_27 I need to be able to show the sub-categories beneath the list of products, because otherwise it's not obvious that they exist. (a quick glance at the tree-structure box will often miss them) I suppose I could always put the spare covers in with the other products, but, I don't wanna :D On a related note, has anyone considered a hack which 'greys out' all parts of the tree which you are not currently browsing? This would make it slightly easier to see any listed subcategories. Quote Hi mom! Link to comment Share on other sites More sharing options...
Guest Posted February 22, 2003 Share Posted February 22, 2003 After much hair-pulling, I've just posted a contribution that addresses this: http://www.oscommerce.com/community/contributions,1014 Preview at: http://cyberdogg.com/gus/default.php?cPath=48_69 (LIVE shop - orders will be billed & delivered) Hope it helps! Quote Link to comment Share on other sites More sharing options...
Da'Onath Posted February 22, 2003 Author Share Posted February 22, 2003 After much hair-pulling, I've just posted a contribution that addresses this: http://www.oscommerce.com/community/contributions,1014 Preview at: http://cyberdogg.com/gus/default.php?cPath=48_69 (LIVE shop - orders will be billed & delivered) Hope it helps! HURRAH!!!!!! Ahem, yes it helps, thanks :D Quote Hi mom! Link to comment Share on other sites More sharing options...
ronsts Posted February 23, 2003 Share Posted February 23, 2003 This is a very nice mod. The only problem is, you cannot show the sub categories if you have products in one of the top level categories. I tried modifying the script somewhat. changed: if (isset($cPath) && ereg('_', $cPath)) to: if (isset($cPath)) This fixed my problem, but caused another problem when displaying products by manufacturer. I got the error: Warning: Argument to array_reverse() should be an array in F:FoxServwwwcatalogdefault.php on line 298 Any Ideas on fixing the problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.