nisha Posted November 19, 2004 Posted November 19, 2004 Hi everyone, This is my first post. I have a small problem with manufacturer box in oscommerce. I want it to be in a listed form like categories box. Plz someone hwlp me out with this.
burt Posted November 19, 2004 Posted November 19, 2004 Change this in your maximum values settings in Admin. I can't remember exactly what it is called so have a play in there and see how you get on. You can see an example of how the manufacturer box looks at my own site (which is a work in progress), which is http://www.a1jewelrystore.com/
nisha Posted November 20, 2004 Author Posted November 20, 2004 Hi burt, Thanks for your suggestion. I tried changing the maximum values in admin but couldn't find a solution. Then i wrote a new function in html_output.php, the code goes like this: function tep_draw_table_menu($name, $values, $page_to_link = FILENAME_DEFAULT, $required = false) { $field = '<table width="100%" border="0" cellspacing="0" cellpadding="0">'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<tr> <td class="CatagoriesBoxContents"><a href="' . tep_href_link($page_to_link, 'manufacturer_id= ' . tep_output_string($values[$i]['id']) . '">' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</a></td> </tr>'; } $field .= '</table>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } also changed a little code in manufacturers.php like this, $info_box_contents[] = array('text' => tep_draw_table_menu('manufacturers_id', $manufacturers_array, FILENAME_DEFAULT)); last few lines. but i am getting errors. Plz could you suggest me on this. I want it the same way as it's on your site http://www.a1jewelrystore.com -Nisha.
burt Posted November 22, 2004 Posted November 22, 2004 Hi Configuration > Maximum Values > Manufacturers List Change this to a high number. hth
nisha Posted November 23, 2004 Author Posted November 23, 2004 Hi Burt, Thanx for your reply. I made some changes in code and got it working. :D -Nisha
Floob Posted February 3, 2005 Posted February 3, 2005 Does anyone know how to remove the manufacturer box from the site? Which file needs editing?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.