Ok, let's say we have main page with categories visible on left side of this main page (named "PAGE_MAIN") with three categories (CATEGORY A with 5 subcategories, CATEGORY B with 2 subcategories and CATEGORY C with 7 subcategories). In the backoffice (admin area) there has been EZ page created, named "EZ_PAGE_A". I want to create php script, which will redirect click on CATEGORY_B from showing subcategories (default behaviour) to EZ_PAGE_A, if EZ_PAGE_A_ENABLE bit is set in custom table, added to zen cart database. How do I achieve that?

Sincerely,
Marko