Jump to content
Torsten_OL

Hersteller nicht als "pull_down_menu"

Recommended Posts

Hallo an Alle,

Ich möchte bei einer Erweiterung im Admin-Bereich den Hersteller (MANUFACTURERS)  anzeigen. Das klappt auch soweit als Pull_Down_Menu mit folgender Zeile:
<?php echo  tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></td>

Wie kann ich diese Zeile ändern, dass nur ein Herstellername angezeigt wird - also nicht als Pull_Down

Gruß Torsten

 

Share this post


Link to post
Share on other sites

<?php
   
      $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, pd.products_bluetezeit, p.products_hoehe, pd.products_bluetenfarbe, p.products_zuechtungsjahr, p.manufacturers_id,
      p.products_weight, pd.products_categorie_kopie, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status,   
      p.products_ausverkauft  from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name" );
        
    while ($products = tep_db_fetch_array($products_query)) {
      if ( (!isset($HTTP_GET_VARS['pID']) && !isset($HTTP_GET_VARS['cID']) || (isset($HTTP_GET_VARS['pID']) && 
                                                            ($HTTP_GET_VARS['pID'] == $products['products_id']))) && !isset($pInfo) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
                                                                
            $reviews_query = tep_db_query("select count(*) as total from " .  TABLE_PRINT_TAFEL . " where products_id = '" . (int)$products['products_id'] . "'");
            $reviews = tep_db_fetch_array($reviews_query);
            $pInfo_array = array_merge($products, $reviews);
            $pInfo = new objectInfo($pInfo_array);
            }
        }

        $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)) {
        $manufacturer = tep_db_fetch_array($manufacturer_query); 
        $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 
                                            'text' => $manufacturers['manufacturers_name']);
     
    }
    
             
        $heading[] = array('text' => '<strong>'. '<td>' . tep_get_products_name($pInfo->products_id, $languages_id) . '</strong>'. '</td>');
        $contents[] = array('text' => '    <table border="0" width="100%" cellspacing="0" cellpadding="0">    ' . tep_info_image_gross($pInfo->products_image, $pInfo->products_name, SMALL_IMAGE_WIDTH*4, SMALL_IMAGE_HEIGHT*4) . '<br />' . '        <table border="0" width=500px cellspacing="3" cellpadding="2">
    
        <td>
        <table border="0" width=250px cellspacing="3" cellpadding="2">
            <tr><td> <strong>' . TEXT_PRODUCTS_NAME . '</strong> </td></tr>
            <tr><td> <strong>' . TEXT_PRODUCTS_CATEGORIE_KOPIE . '</strong> </td></tr>
            <tr><td> <strong>' . TEXT_INFO_MANUFACTURERS . '</strong> </td></tr>
            <tr><td> <strong>' . TEXT_PRODUCTS_ZUECHTUNGSJAHR . '</strong> </td></tr>
            <tr><td> <strong>' . TEXT_PRODUCTS_BLUETENFARBE . '</strong> </td></tr>
            <tr><td> <strong>' . TEXT_PRODUCTS_BLUETEZEIT . '</strong> </td></tr>
        </table>    
        </td>
        <td>    
        <table border="0" width=250px cellspacing="3" cellpadding="2">
            <tr><td> <strong>' . $pInfo->products_name . '</strong> </td></tr>
            <tr><td> <strong>' . $pInfo->products_categorie_kopie . '</strong> </td></tr>


            <tr><td> <strong>' . $pInfo->manufacturer_name . '</strong> </td></tr>


            <tr><td> <strong>' . $pInfo->products_zuechtungsjahr . '</strong> </td></tr>
            <tr><td> <strong>' . $pInfo->products_bluetenfarbe . '</strong> </td></tr>
            <tr><td> <strong>' . $pInfo->products_bluetezeit . '</strong> </td></tr>
        </table>    
        </td>
        
    </table>
    ');    
 
        
?>

 

Das Ganze sieht bei mir so aus - nur funktioniert es nicht mit dem manufacturer_name

 

Danke für die Hilfe
Torsten

Share this post


Link to post
Share on other sites

×