Jump to content
xt:Commerce Community Forum

Eingabe Sonderangebote


andy5476

Recommended Posts

Hallo,

wir haben sehr viele Artikel in unserem Shop die sich in der Artikelbezeichnung kaum oder garnicht unterscheiden. Bei der Dropdown-Auswahl des Artikels bei neuerstellen eines Sonderangebots bekomme ich nur Die Artikelbezeichnung und Preis angezeigt.

Weiss jemand was ich im Code ?ndern muss, dass ich anstatt der Artikelbezeichnung die Artikelnummer im Dropdownmen? zur Auswahl habe?!?

Danke

Andy

Link to comment
Share on other sites

  • 2 years later...
  • 1 month later...
  • 4 months later...
  • 1 year later...

Hier eine Lösung (3.0.4. Sp.2.1):


admin/specials.php

==================


ca. Zeile 139 folgendes suchen:


 $product_query = xtc_db_query("select p.products_tax_class_id,

                                            p.products_id,

                                            pd.products_name,

                                            p.products_price,

                                            s.specials_quantity,

                                            s.specials_new_products_price,

                                            s.expires_date from

                                            " . TABLE_PRODUCTS . " p,

                                            " . TABLE_PRODUCTS_DESCRIPTION . " pd,

                                            " . TABLE_SPECIALS . "

                                            s where p.products_id = pd.products_id

                                            and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'

                                            and p.products_id = s.products_id

                                            and s.specials_id = '" . (int)$_GET['sID'] . "'");

und hiermit ersetzen:


 $product_query = xtc_db_query("select p.products_tax_class_id,

                                            p.products_id,

                                            p.products_model,

                                            pd.products_name,

                                            p.products_price,

                                            s.specials_quantity,

                                            s.specials_new_products_price,

                                            s.expires_date from

                                            " . TABLE_PRODUCTS . " p,

                                            " . TABLE_PRODUCTS_DESCRIPTION . " pd,

                                            " . TABLE_SPECIALS . "

                                            s where p.products_id = pd.products_id

                                            and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'

                                            and p.products_id = s.products_id

                                            and s.specials_id = '" . (int)$_GET['sID'] . "'");


-------------------------------------------------------------

ca. Zeile 192 folgendes suchen:


<td class="main"><?php echo ($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . 


$xtPrice->xtcFormat($price,true). ')</small>' : xtc_draw_products_pull_down('products_id', 


'style="font-size:10px"', $specials_array); echo xtc_draw_hidden_field('products_price', $sInfo->products_price); 


?></td>


und hiermit ersetzen:


<td class="main"><?php echo ($sInfo->products_name) ? $sInfo->products_name . ' ('. $sInfo->products_model .')  


<small>(' . $xtPrice->xtcFormat($price,true). ')</small>' : xtc_draw_products_pull_down('products_id', 


'style="font-size:10px"', $specials_array); echo xtc_draw_hidden_field('products_price', $sInfo->products_price); 


?></td>


-------------------------------------------------------------

ca. Zeile 230 folgendes suchen:


$specials_query_raw = "select p.products_id, pd.products_name,p.products_tax_class_id, p.products_price, 


s.specials_id, s.specials_new_products_price, s.specials_date_added, s.specials_last_modified, s.expires_date, 


s.date_status_change, s.status from " . TABLE_PRODUCTS . " p, " . TABLE_SPECIALS . " s, " . 


TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and pd.language_id = '" . 


$_SESSION['languages_id'] . "' and p.products_id = s.products_id order by pd.products_name";


und hiermit ersetzen:


$specials_query_raw = "select p.products_id, p.products_model, pd.products_name,p.products_tax_class_id, 


p.products_price, s.specials_id, s.specials_new_products_price, s.specials_date_added, s.specials_last_modified, 


s.expires_date, s.date_status_change, s.status from " . TABLE_PRODUCTS . " p, " . TABLE_SPECIALS . " s, " . 


TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and pd.language_id = '" . 


$_SESSION['languages_id'] . "' and p.products_id = s.products_id order by pd.products_name";


-------------------------------------------------------------

ca. Zeile 261 folgendes suchen:


<td  class="dataTableContent"><?php echo $specials['products_name']; ?></td>


und hiermit ersetzen:


<td  class="dataTableContent"><?php echo $specials['products_model']. ' ('. $specials['products_name']. ')'; 


?></td>



-------------------------------------------------------------

-------------------------------------------------------------

admin/includes/functions/general.php


ca. Zeile 316 folgendes suchen:


$products_query = xtc_db_query("select p.products_id, pd.products_name,p.products_tax_class_id, p.products_price 


from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd where p.products_id = pd.products_id and 


pd.language_id = '".$_SESSION['languages_id']."' order by products_name");


und hiermit ersetzen:


$products_query = xtc_db_query("select p.products_id, p.products_model, pd.products_name,p.products_tax_class_id, 


p.products_price from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd where p.products_id = pd.products_id 


and pd.language_id = '".$_SESSION['languages_id']."' order by products_name");


-------------------------------------------------------------

ca. Zeile 323 folgendes suchen:


$select_string .= '<option value="'.$products['products_id'].'">'.$products['products_name'].' 


('.xtc_round($products['products_price'], PRICE_PRECISION).')</option>';


und hiermit ersetzen:


$select_string .= '<option value="'.$products['products_id'].'">'.$products['products_name'].' 


('.$products['products_model'].') ('.xtc_round($products['products_price'], PRICE_PRECISION).') </option>';



-------------------------------------------------------------

-------------------------------------------------------------

das war es.




Link to comment
Share on other sites

  • 2 months later...

Archived

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

×
  • Create New...