Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

split categories


Guest

Recommended Posts

Posted

Maybe not the right topic-titel, but here is what i'm trying to do.

I've created a new menu, and included layers in it. Now i have a menu 'components' and a menu 'software'. When the mouse is moved over Components, its shows everything where the parent_id is 1.

When a ad the same code to the layer Software, it shows all the categories where parent_id is 1 and 2.

I did change the query, and i've renamed the function.

But how can i get rid of the categories in the layer software where parent_id is 1.

 

I'v tried to use

unset($foo);

But that removed everything, even when i rename $foo in the second script to $foo_soft.

 

To make it a little more clear this is what it supposed to look like:

MenuBalk

_______________________________________

|_____componenten_____|_____software___|



  |---layerhardware--|   |---layersoftware--|

  |                  |   |                  |

  |show categories   |   |show categories   |

  |where parent_id   |   |where parent_id   |

  | = 1              |   | = 2              |

  |__________________|   |__________________|

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...