Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

general


nisha

Recommended Posts

Posted

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.

Posted

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/

Posted

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.

Posted

Hi Burt,

Thanx for your reply. I made some changes in code and got it working. :D

 

-Nisha

  • 2 months later...
Posted

Does anyone know how to remove the manufacturer box from the site?

Which file needs editing?

Archived

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

×
×
  • Create New...