i just launched my site couple days back and have been tweaking it ever since.. (see sig for site)
The only thing i want to tweak now is to remove the browse by brand drop down.. Since we only offer our brand clothing.
I was thinking maybe leaving the drop down and making it chose by category.. anyone know how to do that?
here is the code for the drop down from my index page
 | Quote: |  | | | | | | | | | |
<? // ---- MANUFACTURERS
$manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
if ($number_of_rows = tep_db_num_rows($manufacturers_query)) {
echo ' <table cellspacing=0 cellpadding=0>'.
tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get')
.'<tr><td background=images/m19.gif width=229 height=36 class=bc> <b>Browse by Brand:</b></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=0 width=195 align=center>
<tr><td colspan=2 height=20></td></tr>
<tr><td align=right>
';
$manufacturers_array = array();
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']);
$manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'],
'text' => $manufacturers_name);
}
echo tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" class=se') . tep_hide_session_id();
echo ' </td><td align=left valign=top> <input type=image src=images/m23.gif width=34 height=19></td></tr>
<tr><td colspan=2 height=20></td></tr>
</table>
</td></tr>
</form>
</table>
';
}
?> | |  | |  | |