Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ais

Archived
  • Posts

    5
  • Joined

  • Last visited

Posts posted by ais

  1. 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.

×
×
  • Create New...