Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Product Submission Question


ManagerJosh

Recommended Posts

The manufacturers are pulled from the database and made into a dropdown list with the <option value=manufacturers_id and the <option name=manufacturers name.

The function is called something like tep_get_manufacturers... in either

includes/functions/html_output.php or general.php.

 

hth

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

The manufacturers are pulled from the database and made into a dropdown list with the <option value=manufacturers_id and the <option name=manufacturers name.

The function is called something like tep_get_manufacturers... in either

includes/functions/html_output.php or general.php.

 

hth

Mattice

 

How about the variable Matt?

 

<tr>

           <td class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER; ?></td>

           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></td>

         </tr>

    $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE));

   $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");

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

     $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'],

                                    'text' => $manufacturers['manufacturers_name']);

   }

 

What variables would control the manufacturersid so that if I added a line of code that it would depend on the manufacturersid

Link to comment
Share on other sites

What do you want to do? Be specific.

Do you want the id once the form is posted? Or upon load?

 

All I see is a small fragment of code that creates the dropdown

coming from a huge script that has multiple switches to perform stuff.. creating/deleting/inserting.. etc

 

$manufacturers_array[$i]['id']

 

or $HTTP_POST_VARS['manufacturers_id']

 

I'd say.

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

I'm sending you a PM of the URL of my development status Matt. I can't seem to get it to work.

 

Goal is to use the drop down selection determine what manufacturer to use, get the userid, and then isolate that id's data on the table: manufacturers and retrieve data stored on manufacturers_directory (field)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...