Jump to content

Filtering Categories

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
x232

x232

    Newbie

  • Members
  • Pip
  • 4 posts
Hi,

I am trying to replicate the ebay filtering system: eBay – Antiques, Antiquities Classical Amer. and Architectural Garden items on eBay.com. Find IT on eBay.

as you can see the items on that page are being pulled in from the sub (sub/sub) categories of the main category (Antiques)

how can i pull off the above so that a category can display items from its sub categories and show them.

the solution needs to mysql/php driven.

regards
rg

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Let me see what you have tried, and maybe I can help you.

#3
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
If I'd program an category tree, I make work like this

id, catname, parent_id, ...

in this case you search through all with the id, then all with that id as parent id, then all with these id:s as parent id:s and ongoing until no more matches.

then you've got all categories to search within.