I would like to add the following to my category tree:

if (customer is member of wholesale)
{
select all categories
} else {

select all categories except ID=2
}

I have the code for the select statements, I just don't know how to determine if the customer is a member of a certain group.

I realize I will probably have to write a function, but I am brand new to Zen-cart and have no idea which tables & fields I would be looking for.

If someone can point me in the right direction, I'd appreciate it.

/Wendy