Hallo,
bei der Umstellung von xtc 3.04 SP1 auf xtc modified steh ich grad vor einem Problem. Und zwar wird bei jeder email eine zusaetzliche email mit an die warenwirtschaft verschickt. Bei 3.04 lief es einwandfrei, bei modified tritt ein kleines Problem auf, es wird fast alles uebermittelt, aber die einzelnen artikelnummern der beim artikel hinterlegten attribute werden nicht mehr übertragen. Ich selbst bin kein vollprofi, hab auch schon gesucht, aber ich find nix.
hier mal ein Ausschnitt aus dem code der datei, die die warenwirtschaftsmail generiert:
$orders_products_query = xtc_db_query
("SELECT orders_products_id, products_name, products_model, products_quantity, final_price FROM " . TABLE_ORDERS_PRODUCTS
. " WHERE orders_id = '" . xtc_db_input
($insert_id) . "'"); while ($orders_products = xtc_db_fetch_array
($orders_products_query)) { $fuman .= $br.'*<ARTIKELPOSITION>*'.$orders_products['products_model'].','.$orders_products['products_quantity'].','.(($orders_products['products_quantity'] > 0) ?
($orders_products['final_price']/$orders_products['products_quantity']) : $orders_products['final_price']); $fuman .= $br.'*<ARTIKELTEXT>*'.$orders_products['products_name']; $attributes_query = xtc_db_query
("SELECT products_options, products_options_values, options_values_model, options_values_price, options_values_quantity FROM " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES
. " WHERE orders_id = '" . xtc_db_input
($insert_id) . "' AND orders_products_id = '" . $orders_products['orders_products_id'] . "'"); if (xtc_db_num_rows
($attributes_query)) { while ($attributes = xtc_db_fetch_array
($attributes_query)) { if (!empty($attributes['options_values_model'])) { $fuman .= $br.'*<ARTIKELPOSITION>*'.$attributes['options_values_model'].','.($orders_products['products_quantity'] * $attributes['options_values_quantity']).',0'; } $fuman .= $br.'*<ARTIKELTEXT>*'.$attributes['products_options'].': '.$attributes['products_options_values']; } } } Ich weiss, das er sich halt die artikelnummer aus der ORDERS_PRODUCTS_ATTRIBUTES inner db holt (options_values_model), und wie gesagt, bei xtc 3.04 lief es, und die table sieht ja auch genauso aus, aber irgendwie wills bei modified nicht mehr...
brauch hilfe
[EDIT jannemann 02.08.2012: Code richtig formatiert]Linkback: https://www.modified-shop.org/forum/index.php?topic=21475.0