Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have a dropdown as part of the Search and Dropdown contribution, but I cannot figure out where to EDIT or ADD the text "Select Studio" so it will appear as the default inside the dropdown box...any ideas? Here's the code:

 

//begin cut

// Display a drop-down

   $select_box = '<select name="manufacturers_id" onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%">';

   if (MAX_MANUFACTURERS_LIST < 2) {

     $select_box .= '<option value="">' . PULL_DOWN_DEFAULT . '</option>';

   }

   while ($manufacturers_values = tep_db_fetch_array($manufacturers_query)) {

     $select_box .= '<option value="' . $manufacturers_values['manufacturers_id'] . '"';

     if ($HTTP_GET_VARS['manufacturers_id'] == $manufacturers_values['manufacturers_id']) $select_box .= ' SELECTED';

     $select_box .= '>' . substr($manufacturers_values['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '</option>';

   }

   $select_box .= "</select>";

   $select_box .= tep_hide_session_id();



   $info_box_contents = array();

   $info_box_contents[] = array('form'  => '<form name="manufacturers" method="get" action="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false) . '">',

                                'align' => 'left',

                                'text'  => $select_box);

 }



 new infoBox($info_box_contents);

?>

 

thanks.

 

KASR

Posted

I'm not familiar with the contribution. But logically thinking, that would be in the language file, either english.php or the specific page language file.

 

Look for PULL_DOWN_DEFAULT

 

Good Luck.

 

-R

Posted

Does it pull the categories or the manufacturers info for the dropdown?

 

You can set what you can both in languages/english.php, I think. The titles of the boxes are all defined in one of the language files.

 

d

[no external urls in signatures please, kthanks]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...