konon Posted December 2, 2002 Posted December 2, 2002 Hello, I have to modify osC in the way so it does the following: Let's say I have 2 main categories called "Letters" and "Numbers". Letters has 26 sub-categories (each letter of an alphabet). Each sub-category in Letters contains 2 products . Example sub-category "A" has "Upper Case A" as prod. 1 and "Lower Case A" as prod. 2 Now when customer clicks on "Letters" category - all 26 subs + New product will display on result page. This is the problem. What I want to do is to limit how many sub-categories are displayed per page. Similar to what's new listing, or search results. I know that the code that lists categories in around line 82 in default.php. But I have trouble inserting pagination feature as implemented in various other places. Any help would be greatly appreciated. Thank you in advance.
Guest Posted December 2, 2002 Posted December 2, 2002 The simplest way would be to just create new categories under your original one. So instead of having 26 sub categories after your main category - have maybe 5 sub categories - titled "A to E", "F to J", etc. Then, within those sub categories - you can place your abc's categories. Basicly, you are creating sub/sub forms. Won't change the code - but it will make it easier for your customers to find what they are looking for... Eileen
konon Posted December 2, 2002 Author Posted December 2, 2002 Well, the problem is that I treat sub cats kind of like product listing, since it a pain to work with attributes. That's why I want to be able to paginate categories like it's done with products. I don't care for sorting, just want to be able to break it up by let's say 9 per page and have Prev, Next buttons.
Guest Posted December 2, 2002 Posted December 2, 2002 I treat sub cats kind of like product listing, since it a pain to work with attributes. Are you doing it from the admin panel or from the database? I set my categories up initially using the admin panel and then for updating I use the database. It seemed to eliminate a lot of work. For example, I have a main category called "craft supplies", within that category I have it broken down into about 15 different sub categories. Within each sub category - I then have either a number of product listings or even more sub categories - depending on the products. Eileen
konon Posted December 2, 2002 Author Posted December 2, 2002 Well, the problem that I face requers for a large number of subcategories on one level. In this manner: MainCategory | SubCategoty | Category1 | Prod1 | Prod2 | Category2 | Prod1 | Prod2 | Category3 | Prod1 | Prod2 | ... | Category200 Prod1 Prod2 As you can see I need a method to manage the display and sorting of Category1 through Category200 on SubCategory page.
Guest Posted December 2, 2002 Posted December 2, 2002 I see. I am sorry - but I can't be of much help with that unfortunately. :( Eileen
konon Posted December 2, 2002 Author Posted December 2, 2002 No prob Eileen, thank you anyway. Anyone has any sugestions?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.