Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Manufacturer Drop Down Box


MajesticBridal

Recommended Posts

Posted

Okay - so we have finally found a template that works with MySQL 5.0. However, I want to delete the Manufacturer drop down box on the home page and throughout the store. Can anyone please provide code?

 

Thanks!

Posted

catalog/includes/column left

 

Find the code for the box and put /* in front and */ at the end. Like this:

/*
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
 } else {
include(DIR_WS_BOXES . 'manufacturers.php');
 }
*/

 

:thumbsup:

Posted
catalog/includes/column left

 

Find the code for the box and put /* in front and */ at the end. Like this:

/*
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
 } else {
include(DIR_WS_BOXES . 'manufacturers.php');
 }
*/

 

:thumbsup:

 

Thanks for the reply...we tried it and no joy. Here's the code that we have:

<?php

 

/*

 

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

 

 

osCommerce, Open Source E-Commerce Solutions

 

http://www.oscommerce.com

 

 

 

Copyright © 2003 osCommerce

 

 

 

Released under the GNU General Public License

 

*/

 

 

 

if ((USE_CACHE == 'true') && empty($SID)) {

 

echo tep_cache_categories_box();

 

} else {

 

include(DIR_WS_BOXES . 'categories.php');

 

}

 

/*

 

if ((USE_CACHE == 'true') && empty($SID)) {

 

echo tep_cache_manufacturers_box();

 

} else {

 

include(DIR_WS_BOXES . 'manufacturers.php');

 

}

 

*/

 

require(DIR_WS_BOXES . 'whats_new.php');

 

require(DIR_WS_BOXES . 'search.php');

 

require(DIR_WS_BOXES . 'information.php');

 

?>

 

AND we completely deleted the line and it's still not working. Suggestions?

Posted

This is what I have and has worked for me

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

/*

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

?>

 

 

Have you enabled the write function

or download the file edit as needed then upload.

I have done exactly that and all OK

Cheers

Posted
This is what I have and has worked for me

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

/*

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

?>

Have you enabled the write function

or download the file edit as needed then upload.

I have done exactly that and all OK

Cheers

 

Thanks so much for your reply! I really appreciate the assistance and have passed on the code you supplied to my husband. We're not sure about the write function - he's checking. Where exactly is that?

Posted
Thanks so much for your reply! I really appreciate the assistance and have passed on the code you supplied to my husband. We're not sure about the write function - he's checking. Where exactly is that?

 

We tried what you have suggested and no joy again. Any other ideas?

Posted

Have you edited the catalog/index.php file yet?

 

Look for this section beginning with:

 

// optional Product List Filter

 

the section ends just above this line:

 

// Get the right image for the top-right

 

Comment out all the code in that section using /* at the beginning and */ at the end. See if that works for you. HTH

Posted
Have you edited the catalog/index.php file yet?

 

Look for this section beginning with:

 

// optional Product List Filter

 

the section ends just above this line:

 

// Get the right image for the top-right

 

Comment out all the code in that section using /* at the beginning and */ at the end. See if that works for you. HTH

 

Thanks so much for the reply! We greatly appreciate your help, however, we tried and no such luck again. Here is the code we used - let us know if we put something in the wrong place (hence the error on our part).

 

<?php

 

/*

 

// optional Product List Filter

 

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 ' <td align="center" 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";

 

}

 

}

 

*/

 

// Get the right image for the top-right

Posted

Try placing the comment marks /* just under this line: // optional Product List Filter

 

That's what I'm using along with the edits in the column_left.php file. I only have this part edited:

 

/*

include(DIR_WS_BOXES . 'manufacturers.php');

*/

 

See if that makes a difference. HTH

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...