ais Posted January 13, 2003 Share Posted January 13, 2003 I just installed the above contribution. One thing I noticed was that the breadcrumb trail is no longer accurate i.e. if you are in a sub-category, the category is not displayed before the sub-category. Anybody got a fix for this? Quote why oh why did I ever start... Link to comment Share on other sites More sharing options...
TB Posted January 14, 2003 Share Posted January 14, 2003 AIS, Check out this thread here, and the one I have linked in there also. http://www.oscommerce.com/forums/viewtopic.php?t=31329 Cheers, Tony Quote "The price of success is perseverance. The price of failure comes much cheaper." Link to comment Share on other sites More sharing options...
ais Posted January 14, 2003 Author Share Posted January 14, 2003 From what I can tell you are right about the path composition. I had a look at the categories table amd basically all top categories have a parent id of 0 (zero). All sub-categories have a parent id of greater than 0. It seems one has to do a query for the parent id and build the category id to include the parent id. You may have to do a loop in the case of very deep categories until you hit a parent id of 0. For the moment I partially "solved" the problem by expanding the sub-category names to include the category name. Fortunatelty I only have 1 sub-category at the moment so I can get away with it. Quote why oh why did I ever start... 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.