Forums / General Questions / Walking Category Tree

Walking Category Tree

Locked

Views: 962

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
17 Oct 2008, 5:56 PM
#1
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Walking Category Tree

Hi all you coders,

I have converted a category / product structure from an other commerce system to Zen 1.3.8a.

The problem I am experiencing is that the other cart allowed products to exist along side categories and sub-categories and Zen does not.

ex:
Product 1 and Sub-Cat1 are at the same level (Non-Zen Method)
Product 2 is below Sub-Cat2 (Zen Method)

Cat 1

Sub-Cat1

Product1

Sub-Cat2

Product2

I need a way to walk the category tree to detect if there are any products that exist along with other categories so I can move them in to their own category (a list or dump would work)!

This would only need to be a one time deal and does not need to fit within the Zen code structure.

Any code help would be much appreciated, thanks!:smile:

Experience is what you get when you don’t get what you want…