steve@bullandcrowley Posted September 20, 2008 Share Posted September 20, 2008 My client has both categories and product lines. They are two completely different entities. Unfortunately, I am unable to add a new product to a particular CATEGORY because only the PRODUCT LINES display in the dropdown menu and on the main Categories/Products menu. I traced this to "parent_id" in the categories table on the database. The categories are set to parent_id '1' and the PRODUCT LINES are set to '0'. In the following code, it will only allow to show EITHER '0' or '1', or whatever parent_id you set it to: function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false) { global $languages_id; . . . I set this to '1' and was able to see my product categories, but not the product lines. I set this back to '0' and got the opposite result! Please help!! Is there a way to display both, without manipulating the database and ultimately breaking anything else that relies on a particular setting of parent_id? Steve Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.