ok, so $box_categories_array is created from the category_tree class?
actually, honestly, I am not sure how those categories are generated or how the variables in the sql are populated.
Code:
$categories_query = "select ptc.category_id as categories_id, cd.categories_name, c.parent_id, c.categories_image
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_PRODUCT_TYPES_TO_CATEGORY . " ptc
where c.parent_id = " . (int)$value . "
and ptc.category_id = cd.categories_id
and ptc.product_type_id = " . $master_type . "
and c.categories_id = ptc.category_id
and cd.language_id=" . (int)$_SESSION['languages_id'] ."
and c.categories_status= 1
order by sort_order, cd.categories_name";
For example, how is TABLE_CATEGORIES variable populated? does zencart know that is a variable and needs to be replaced by an actual value?
sorry for asking this. or is there a document that would explain this to me?
Bookmarks