Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Drop down boxes.


williamcarter

Recommended Posts

Posted

Topic almost says it all. I need to figure out how to add a manufacturer drop down box to the header search function. If possible, when a manufacturer is selected have the model numbers associated with the manufacturers products in a box adjacent to it.

 

You will see the search bar in this sites main header. This is what I'm going for.

Example myvoicecomm.com

 

I figure this should be easy.

 

Thanks in advance. :)

Mike

Posted

Yes, its easy, but I`m not about to write it for you!!, but to help this is some code to do similar

 

$name_query = tep_db_query("select page_name, page_id from " . TABLE_PAGE_DESCRIPTION . " order by page_name");

$pg_name_array = array( array('id' => '0', 'text' => 'Category Page'));

while ($pg_name = tep_db_fetch_array($name_query)) {

$pg_name_array[] = array('id' => $pg_name['page_id'], 'text' => $pg_name['page_name']); } echo tep_draw_pull_down_menu('menu_page_id', $pg_name_array, $menu['menu_page_id'], '');

 

 

Hope that helps

 

 

B)

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Archived

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

×
×
  • Create New...