taiguy09 Posted April 28, 2010 Share Posted April 28, 2010 Supplier Admin V1.3 is great. I just have one question. Is there anyway i can set all new Supplier to see all categories and sub categories for both current and new categories generated by the super admin? Thanks Quote Link to comment Share on other sites More sharing options...
taiguy09 Posted April 28, 2010 Author Share Posted April 28, 2010 Never mind. Found it. Here's how: in the suppliers_s_categories_products.php file. look for this: if ($current_category_id == 0) $categories_query = tep_db_query("select c.supplier_id, c.categories_id, cd.categories_name, c.categories_image, cd.categories_id, c.sort_order, c.date_added, c.last_modified, cts.categories_id, cts.suppliers_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_CATEGORIES_TO_SUPPLIERS . " cts where c.categories_id = cd.categories_id and c.categories_id = cts.categories_id and cts.suppliers_id = '" . (int)$suppliers_id . "' order by c.sort_order, cd.categories_name"); change to: if ($current_category_id == 1) $categories_query = tep_db_query("select c.supplier_id, c.categories_id, cd.categories_name, c.categories_image, cd.categories_id, c.sort_order, c.date_added, c.last_modified, cts.categories_id, cts.suppliers_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_CATEGORIES_TO_SUPPLIERS . " cts where c.categories_id = cd.categories_id and c.categories_id = cts.categories_id and cts.suppliers_id = '" . (int)$suppliers_id . "' order by c.sort_order, cd.categories_name"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.