keoga Posted September 19, 2005 Posted September 19, 2005 Hi everyone, Could someone help me and tell me how to remove the dropdown in the product listing "show categories" I still want to have the dropdown show ALL manufacturers. I have found the code that should be changed in teh catalog/index.php but I haven't managed to figure out howto do this if (PRODUCT_LIST_FILTER > 0) { if (isset($HTTP_GET_VARS['manufacturers_id'])) { $filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name"; } else { $filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name"; } $filterlist_query = tep_db_query($filterlist_sql); if (tep_db_num_rows($filterlist_query) > 1) { echo ' <br> <td align="left" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' '; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)); } else { echo tep_draw_hidden_field('cPath', $cPath); $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)); } echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']); while ($filterlist = tep_db_fetch_array($filterlist_query)) { $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']); } echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"'); echo '</form></td>' . "\n"; } } Any help appreciated!
MoisesZaragoza Posted September 19, 2005 Posted September 19, 2005 All you have to do is go into includes>>column_left.php and look for the line that looks like if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { # include(DIR_WS_BOXES . 'manufacturers.php'); } and comment out /* if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { # include(DIR_WS_BOXES . 'manufacturers.php'); }*/ at the end of the day the code will be good
keoga Posted September 19, 2005 Author Posted September 19, 2005 *hehe thanks but I don't want to remove the manufacturers box I want to move the dropdown menu that appears when you are product listing the one that says "show: All Categories" <<shows when you have the same product copied to different categories and just one manufacturer in that categorie. If you have several manufacturers in that categorie you will get the dropdown menu that says "show: All Manufacturers" But thanks for the try!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.