frankcom Posted February 26, 2007 Report Share Posted February 26, 2007 Hallo, ich möchte wie im Warenkorb in anderen Bereichen wie in der Rechnung die Kurzbeschreibung des Artikels erscheinen lassen, da die Artikelnamen nicht genügend aussagekräftig sind. In der Rechnung müsste demnach diese Variable stehen: {$order_values.PRODUCTS_SHORT_DESCRIPTION} Wo muss ich denn die Information noch importieren? Hoffe mir kann jemand helfen. Gruß Marco Link to comment Share on other sites More sharing options...
dererstekontakt Posted August 1, 2007 Report Share Posted August 1, 2007 Hallo, das hätte ich auch gerne, kenn mich aber noch zu wenig aus ... Hat jemand eine Idee, wie man das verwirklichen kann ? LG, dererstekontakt Link to comment Share on other sites More sharing options...
walter999 Posted August 1, 2007 Report Share Posted August 1, 2007 Die DB-Abfrage in der admin/pront_order.php mß erweitert werden, die Variable an das Template gesendet werden und im Template /admin/print_order.html eingebaut werden. Gruß Walter Link to comment Share on other sites More sharing options...
Guest tuvalu Posted August 1, 2007 Report Share Posted August 1, 2007 Kurzbeschreibung in Bestellungen eingefügt, auch für Email und Ausdruck In: adim/print_order.php root/print_order.php root/send_order.php suche: while ($order_data_values = xtc_db_fetch_array($order_query)) { $attributes_query=xtc_db_query("SELECT products_options, products_options_values, price_prefix, options_values_price FROM ".TABLE_ORDERS_PRODUCTS_ATTRIBUTES." WHERE orders_products_id='".$order_data_values['orders_products_id']."'"); $attributes_data=''; $attributes_model=''; while ($attributes_data_values = xtc_db_fetch_array($attributes_query)) { $attributes_data .='<br />'.$attributes_data_values['products_options'].':'.$attributes_data_values['products_options_values']; $attributes_model .='<br />'.xtc_get_attributes_model($order_data_values['products_id'],$attributes_data_values['products_options_values'],$attributes_data_values['products_options']); } $order_data[]=array( 'PRODUCTS_MODEL' => $order_data_values['products_model'], 'PRODUCTS_NAME' => $order_data_values['products_name'], 'PRODUCTS_ATTRIBUTES' => $attributes_data, 'PRODUCTS_ATTRIBUTES_MODEL' => $attributes_model, 'PRODUCTS_PRICE' => xtc_format_price_order($order_data_values['final_price'],1,$order->info['currency']), 'PRODUCTS_QTY' => $order_data_values['products_quantity']); } ersetze mit: while ($order_data_values = xtc_db_fetch_array($order_query)) { $short_query = xtc_db_query("SELECT products_short_description FROM " . TABLE_PRODUCTS_DESCRIPTION . " WHERE products_id=" . $order_data_values['products_id'] . " AND language_id=" . $_SESSION['languages_id']); $short_result = xtc_db_fetch_array($short_query); $attributes_query = xtc_db_query("SELECT products_options, products_options_values, price_prefix, options_values_price FROM ".TABLE_ORDERS_PRODUCTS_ATTRIBUTES." WHERE orders_products_id='".$order_data_values['orders_products_id']."'"); $attributes_data = ''; $attributes_model = ''; while ($attributes_data_values = xtc_db_fetch_array($attributes_query)) { $attributes_data .= '<br />'.$attributes_data_values['products_options'].':'.$attributes_data_values['products_options_values']; $attributes_model .= '<br />'.xtc_get_attributes_model($order_data_values['products_id'], $attributes_data_values['products_options_values'],$attributes_data_values['products_options']); } $order_data[]=array( 'PRODUCTS_MODEL' => $order_data_values['products_model'], 'PRODUCTS_NAME' => $order_data_values['products_name'], 'PRODUCTS_ATTRIBUTES' => $attributes_data, 'PRODUCTS_ATTRIBUTES_MODEL' => $attributes_model, 'PRODUCTS_PRICE' => xtc_format_price_order($order_data_values['final_price'],1,$order->info['currency']), 'PRODUCTS_QTY' => $order_data_values['products_quantity'], 'PRODUCTS_SHORT_DESCRIPTION' => $short_result['products_short_description']); }In templates/deineTemplates/admin/print_order.html {$order_values.PRODUCTS_SHORT_DESCIPTION} eingefügt templates/deineTemplates/module/print_order.html {$order_values.PRODUCTS_SHORT_DESCIPTION} eingefügt tuvalu Link to comment Share on other sites More sharing options...
Matzinger Posted September 12, 2007 Report Share Posted September 12, 2007 Hi zusammen, ich benötige auch mehr Informationen auf dem Ausdruck, finde bei mir jedoch keine print_order.php! Weiß jemand Rat? Nachtrag: Gefunden, es ist die "order.php" im Verzeichnis includes/classes (falls irgendjemand danach suchen sollte). Thx for nothing! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.