maggot Posted July 19, 2005 Report Share Posted July 19, 2005 also die Zeilen habe ich jetzt doch alle in der 'Orders' Tabelle gefunden. Hab ka was los ist... Link to comment Share on other sites More sharing options...
karabey Posted July 19, 2005 Report Share Posted July 19, 2005 Wie ist das den f?r die ?sterreichische Post m?glich??? http://app.post.at/TnT/result.php?pnum1=1163050100680665 Habe allein link ge?ndert aber wurde nichts draus... Link to comment Share on other sites More sharing options...
karabey Posted July 19, 2005 Report Share Posted July 19, 2005 F?r die ?sterreichische Post geht das ganze so Modul lang/german/admin/orders.php Nach define('ENTRY_STATUS', 'Status:'); einf?gen // W. Kaiser #Erlaube Sendungstracking define('ENTRY_TRACKCODE', 'Sendungscode'); define('STATUS_SENT', 'Versendet'); // 'TRACKURL' #Hier muss die Tracking-URL des Versenders stehen. // Tracking Beispiel DHL (POST AG) // An der Stelle, an der der Sendungscode steht, muss das Zeichen # als Platzhalter stehen! // An der Stelle, an der die Empf?nger-PLZ steht, muss das Zeichen @ als Platzhalter stehen! define('TRACKURL', 'http://app.post.at/TnT/result.php?pnum1=#'); // W. Kaiser #Erlaube Sendungstracking Link to comment Share on other sites More sharing options...
maggot Posted July 19, 2005 Report Share Posted July 19, 2005 Ich meine die andere orders.php Das was du hast, habe ich auch. Link to comment Share on other sites More sharing options...
argy17 Posted July 20, 2005 Report Share Posted July 20, 2005 M?chte dem Kunden zwar die M?glichkeit geben die Sendung zu verfolgen aber ihn nich extra ein Adminrecht geben? Wie funzt euer Script nun genau? Kunde loggt sich ein - bestellt - bekommt Email zur Best?tigung - Ware geht raus - Kunde bekommt neue Mail mit Link zur Sendungsverfolgung oder wie? Denn genau so h?tte ich das gern, aber automatisch. Soll hei?en: wenn ich das im Adminbereich ?ndere, dass der Kunde dann direkt eine Mail mit dem Link bekommt. PS: ich nutze Version 3.03 und br?uchte dementsprechend den Code daf?r... Link to comment Share on other sites More sharing options...
maggot Posted July 20, 2005 Report Share Posted July 20, 2005 Wie soll automatisch ein Sendungscode vergeben werden? Den kannst nur du eingeben, die Mail wird ja dann automatisch an den Kunden verschickt, sobald du den Status auf versenden setztst und einen Sendungscode eingegeben hast, geschieht alles automatisch. Den Rest musst aber du machen also Sendungscode und Status ?ndern. Das System kann doch nicht einfach irgendeinen Sendungscode generieren. Link to comment Share on other sites More sharing options...
argy17 Posted July 20, 2005 Report Share Posted July 20, 2005 entschuldigung. da hab ich mich falsch ausgedr?ckt. so wie du es jetz geschrieben hast meine ich das. hat jemand nen funktionierenden code f?r die v3.03? Link to comment Share on other sites More sharing options...
Bergami Posted July 20, 2005 Report Share Posted July 20, 2005 Habe den Code von gswkaiser gerade in die 3.03 eingebunden und es funktioniert wunderbar! Gibt es vielleicht noch die M?glichkeit, wenn man mit mehr als einem Versender arbeitet, die Contribution dahin gehend zu erweitern, dass man in der orders.php noch eine Auswahlm?glichkeit f?r die Paketdienste hat - sprich die notwendigen Links zu den Paketdienste nicht manuel ge?ndert werden m?ssen? Link to comment Share on other sites More sharing options...
maggot Posted July 20, 2005 Report Share Posted July 20, 2005 Originally posted by Bergami@Jul 20 2005, 05:25 PM Habe den Code von gswkaiser gerade in die 3.03 eingebunden und es funktioniert wunderbar! Gibt es vielleicht noch die M?glichkeit, wenn man mit mehr als einem Versender arbeitet, die Contribution dahin gehend zu erweitern, dass man in der orders.php noch eine Auswahlm?glichkeit f?r die Paketdienste hat - sprich die notwendigen Links zu den Paketdienste nicht manuel ge?ndert werden m?ssen? Quoted post Kannst du mir dann evtl. mal erkl?ren , warum es bei mir nicht funktioniert? K?nntest du mir alle Dateien , welche du ge?ndert hast per Email schicken? W?re nett danke! Emailaddy per PM Gru?, maggot Link to comment Share on other sites More sharing options...
Bergami Posted July 21, 2005 Report Share Posted July 21, 2005 Hallo Maggot ich habe den Code von gswkaiser unver?ndert ?bernommen. Den einzigen Fehler in seiner Anweisung hast Du ja schon selber gefunden. Statt "ersetzen durch" sollte der eine Codeschnipsel danach eingef?gt werden. Nach : CODE <td class="main"><?php echo ENTRY_STATUS; ?> <?php echo xtc_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']); ?></td> einf?gen : CODE <td class="main"> <?php echo ENTRY_STATUS; ?> <?php echo xtc_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']); ?> <!--W. Kaiser #Erlaube Sendungstracking --> <?php echo ENTRY_TRACKCODE.":"; ?> <?php echo xtc_draw_input_field('trackcode', '', 'size=30');?> <?php echo "(".ENTRY_TRACKCODE." f?r die Sendungsverfolgung)"; ?> <!--W. Kaiser #Erlaube Sendungstracking --> </td> Hast Du den SQL-Befehl in Deiner Datenbank ausgef?hrt? ALTER TABLE orders ADD orders_trackcode varchar(32) Link to comment Share on other sites More sharing options...
maggot Posted July 21, 2005 Report Share Posted July 21, 2005 Daher schick mir mal bitte deine ge?nderte Dateien! Danke! Emailadresse hast du per pm bekommen! Link to comment Share on other sites More sharing options...
maggot Posted July 21, 2005 Report Share Posted July 21, 2005 So hab es hinbekommen. Nochmal danke f?r alle Hilfe!!! Link to comment Share on other sites More sharing options...
mikerise Posted July 31, 2005 Report Share Posted July 31, 2005 Hallo - hab die Motifikation wie beschrieben vorgenommen - jetzt geht das mit der Benachrichtigung, aber leider kommt in Adminbereich folgenden Fehlermeldung: Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/67535/www.tintenbiene.de/shop/lang/german/admin/orders.php:1) in /is/htdocs/67535/www.tintenbiene.de/shop/admin/includes/functions/general.php on line 146 Die gleiche nochmal (hab ich jetzt nicht da) nur f?r den shop/admin/orders.php) - wo ran liegt es - kommt erst nach den Einsatz des Codes (direkt kopiert ) irgendwo ein Schreibfehler - (die Infos zu diesem Fehler sind etwas sp?rlich im Netz - m?glicherweise soll es ein Fehlerhaftes Zeichen sein) Irgend wer eine Ahnung? Mfg Mike Link to comment Share on other sites More sharing options...
mikerise Posted July 31, 2005 Report Share Posted July 31, 2005 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /is/htdocs/67535/www.tintenbiene.de/shop/admin/orders.php:1) in /is/htdocs/67535/www.tintenbiene.de/shop/admin/includes/application_top.php on line 334 Das ist die erste Zeile Mfg Mike Link to comment Share on other sites More sharing options...
mikerise Posted July 31, 2005 Report Share Posted July 31, 2005 Bevor ich es vergessen - ein paar Motifiktaion f?r den Mailanhang sind gemacht worden (xtc.php... irgendwas im ing Verzeichnis - hab irgendwo die Verbindung zum orders.php gelesen) Mfg Mike Link to comment Share on other sites More sharing options...
cub Posted August 8, 2005 Report Share Posted August 8, 2005 Hab das gleiche Problem. Bei mir kommt auch diese Fehlermeldung. Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/home/medienversand_at/www/xtcommerce/admin/orders.php:1) in /var/home/medienversand_at/www/xtcommerce/admin/includes/application_top.php on line 333 Warning: Cannot modify header information - headers already sent by (output started at /var/home/medienversand_at/www/xtcommerce/admin/orders.php:1) in /var/home/medienversand_at/www/xtcommerce/admin/includes/functions/general.php on line 146 Kann mir wer helfen? Link to comment Share on other sites More sharing options...
cub Posted August 11, 2005 Report Share Posted August 11, 2005 Kann mir keiner helfen? Link to comment Share on other sites More sharing options...
wechseldich2 Posted August 15, 2005 Report Share Posted August 15, 2005 hi zusammen, wenn ihr dieses hier in die "admin/orders.php" ersetzt, sollte es laufen! <!--Ab hier gehts los--> <?php /* -------------------------------------------------------------- $Id: orders.php,v 1.15 2004/04/14 19:14:06 fanta2k Exp $ XT-Commerce - community made shopping ' . xtc_image_button('button_back.gif', IMAGE_BACK) . ''; ?> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="3"><?php echo xtc_draw_separator(); ?></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <?php if ($order->customer['csID']!='') { ?> <tr> <td class="main" valign="top" bgcolor="#FFCC33"><?php echo ENTRY_CID; ?></td> <td class="main" bgcolor="#FFCC33"><?php echo $order->customer['csID']; ?></td> </tr> <?php } ?> <tr> <td class="main" valign="top"><?php echo ENTRY_CUSTOMER; ?></td> <td class="main"><?php echo xtc_address_format($order->customer['format_id'], $order->customer, 1, '', ' '); ?></td> </tr> <tr> <td colspan="2"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="main" valign="top"><?php echo CUSTOMERS_MEMO; ?></td> <?php // memoquery $memo_query=xtc_db_query("SELECT count(*) as count FROM ".TABLE_CUSTOMERS_MEMO." where customers_id='".$order->customer['ID']."'"); $memo_count=xtc_db_fetch_array($memo_query); ?> <td class="main"><?php echo $memo_count['count'].''; ?> <a style="cursor:hand" onClick="javascript:window.open('<?php echo xtc_href_link(FILENAME_POPUP_MEMO,'ID='.$order->customer['ID']); ?>', 'popup', 'scrollbars=yes, width=500, height=500')">(<?php echo DISPLAY_MEMOS; ?>)</a></td> </tr> <tr> <td class="main"><?php echo ENTRY_TELEPHONE; ?></td> <td class="main"><?php echo $order->customer['telephone']; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td> <td class="main"><?php echo ' . '"]<u>' . $order->customer['email_address'] . '</u>'; ?></td> </tr> <tr> <td class="main" valign="top" bgcolor="#FFCC33"><?php echo IP; ?></td> <td class="main" bgcolor="#FFCC33"><?php echo $order->customer['cIP']; ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><?php echo ENTRY_SHIPPING_ADDRESS; ?></td> <td class="main"><?php echo xtc_address_format($order->delivery['format_id'], $order->delivery, 1, '', ' '); ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><?php echo ENTRY_BILLING_ADDRESS; ?></td> <td class="main"><?php echo xtc_address_format($order->billing['format_id'], $order->billing, 1, '', ' '); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_LANGUAGE; ?></td> <td class="main"><?php echo $order->info['language']; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_PAYMENT_METHOD; ?></td> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> <?php if ( (($order->info['cc_type']) || ($order->info['cc_owner']) || ($order->info['cc_number'])) ) { ?> <tr> <td colspan="2"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_TYPE; ?></td> <td class="main"><?php echo $order->info['cc_type']; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_OWNER; ?></td> <td class="main"><?php echo $order->info['cc_owner']; ?></td> </tr> <?php // BMC CC Mod Start if ($order->info['cc_number'] != '0000000000000000') { if ( strtolower(CC_ENC) == 'true' ) { $key = changeme; $cipher_data = $order->info['cc_number']; $order->info['cc_number'] = changedataout($cipher_data,$key); } } // BMC CC Mod End ?> <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td> <td class="main"><?php echo $order->info['cc_number']; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td> <td class="main"><?php echo $order->info['cc_expires']; ?></td> </tr> <?php } // begin modification for banktransfer $banktransfer_query = xtc_db_query("select banktransfer_prz, banktransfer_status, banktransfer_owner, banktransfer_number, banktransfer_bankname, banktransfer_blz, banktransfer_fax from banktransfer where orders_id = '" . xtc_db_input($_GET['oID']) . "'"); $banktransfer = xtc_db_fetch_array($banktransfer_query); if (($banktransfer['banktransfer_bankname']) || ($banktransfer['banktransfer_blz']) || ($banktransfer['banktransfer_number'])) { ?> <tr> <td colspan="2"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_BANK_NAME; ?></td> <td class="main"><?php echo $banktransfer['banktransfer_bankname']; ?></td> </tr> <tr> <td class="main"><?php echo TEXT_BANK_BLZ; ?></td> <td class="main"><?php echo $banktransfer['banktransfer_blz']; ?></td> </tr> <tr> <td class="main"><?php echo TEXT_BANK_NUMBER; ?></td> <td class="main"><?php echo $banktransfer['banktransfer_number']; ?></td> </tr> <tr> <td class="main"><?php echo TEXT_BANK_OWNER; ?></td> <td class="main"><?php echo $banktransfer['banktransfer_owner']; ?></td> </tr> <?php if ($banktransfer['banktransfer_status'] == 0) { ?> <tr> <td class="main"><?php echo TEXT_BANK_STATUS; ?></td> <td class="main"><?php echo "OK"; ?></td> </tr> <?php } else { ?> <tr> <td class="main"><?php echo TEXT_BANK_STATUS; ?></td> <td class="main"><?php echo $banktransfer['banktransfer_status']; ?></td> </tr> <?php switch ($banktransfer['banktransfer_status']) { case 1: $error_val = TEXT_BANK_ERROR_1; break; case 2: $error_val = TEXT_BANK_ERROR_2; break; case 3: $error_val = TEXT_BANK_ERROR_3; break; case 4: $error_val = TEXT_BANK_ERROR_4; break; case 5: $error_val = TEXT_BANK_ERROR_5; break; case 8: $error_val = TEXT_BANK_ERROR_8; break; case 9: $error_val = TEXT_BANK_ERROR_9; break; } ?> <tr> <td class="main"><?php echo TEXT_BANK_ERRORCODE; ?></td> <td class="main"><?php echo $error_val; ?></td> </tr> <tr> <td class="main"><?php echo TEXT_BANK_PRZ; ?></td> <td class="main"><?php echo $banktransfer['banktransfer_prz']; ?></td> </tr> <?php } } if ($banktransfer['banktransfer_fax']) { ?> <tr> <td class="main"><?php echo TEXT_BANK_FAX; ?></td> <td class="main"><?php echo $banktransfer['banktransfer_fax']; ?></td> </tr> <?php } // end modification for banktransfer ?> </table></td> </tr> <tr> <td><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td> <?php if ($order->products[0]['allow_tax'] == 1) { ?> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td> <?php } ?> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; if ($order->products[$i]['allow_tax'] == 1){ echo ' (excl.)'; } ?></td> </tr> <?php for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) { echo ' <tr class="dataTableRow">' . "\n" . ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . 'x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; if (sizeof($order->products[$i]['attributes']) > 0) { for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) { echo ' <nobr> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix']; if ($order->products[$i]['allow_tax'] == 1) { echo $currencies->format(xtc_add_tax($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'],$order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']); } else { echo $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']); } echo ')'; echo '</nobr>'; } } echo ' </td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top">' . format_price($order->products[$i]['final_price']/$order->products[$i]['qty'], 1, $order->info['currency'], $order->products[$i]['allow_tax'], $order->products[$i]['tax']) . '</td>' . "\n"; if ($order->products[$i]['allow_tax'] == 1) { echo '<td class="dataTableContent" align="right" valign="top">'; echo xtc_display_tax_value($order->products[$i]['tax']).'%'; echo '</td>' . "\n"; echo '<td class="dataTableContent" align="right" valign="top">'; echo format_price($order->products[$i]['final_price']/$order->products[$i]['qty'], 1, $order->info['currency'], 0, 0); echo '</td>' . "\n"; } echo ' <td class="dataTableContent" align="right" valign="top">' . format_price(($order->products[$i]['final_price']),1,$order->info['currency'],0,0). '</td>' . "\n"; echo ' </tr>' . "\n"; } ?> <tr> <td align="right" colspan="10"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { echo ' <tr>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><table border="1" cellspacing="0" cellpadding="5"> <tr> <td class="smallText" align="center"><?php echo TABLE_HEADING_DATE_ADDED; ?></td> <td class="smallText" align="center"><?php echo TABLE_HEADING_CUSTOMER_NOTIFIED; ?></td> <td class="smallText" align="center"><?php echo TABLE_HEADING_STATUS; ?></td> <td class="smallText" align="center"><?php echo TABLE_HEADING_COMMENTS; ?></td> </tr> <?php $orders_history_query = xtc_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . xtc_db_input($oID) . "' order by date_added"); if (xtc_db_num_rows($orders_history_query)) { while ($orders_history = xtc_db_fetch_array($orders_history_query)) { echo ' <tr>' . "\n" . ' <td class="smallText" align="center">' . xtc_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td class="smallText" align="center">'; if ($orders_history['customer_notified'] == '1') { echo xtc_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n"; } else { echo xtc_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n"; } echo ' <td class="smallText">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n" . ' <td class="smallText">' . nl2br(xtc_db_output($orders_history['comments'])) . '</td>' . "\n" . ' </tr>' . "\n"; } } else { echo ' <tr>' . "\n" . ' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table></td> </tr> <tr> <td class="main"> <?php echo TABLE_HEADING_COMMENTS; ?></td> </tr> <tr> <td><?php echo xtc_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr><?php echo xtc_draw_form('status', FILENAME_ORDERS, xtc_get_all_get_params(array('action')) . 'action=update_order'); ?> <td class="main"><?php echo xtc_draw_textarea_field('comments', 'soft', '60', '5', $order->info['comments']); ?></td> </tr> <tr> <td><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_STATUS; ?> <?php echo xtc_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']); ?></td> </tr> <tr> <!--W. Kaiser #Erlaube Sendungstracking --> <tr> <td class="main"> <?php echo ENTRY_TRACKCODE.":"; ?> <?php //Auslesen Trackcode $check_status_query = xtc_db_query("select orders_trackcode from " . TABLE_ORDERS . " where orders_id = '" . xtc_db_input($oID) . "'"); $check_status = xtc_db_fetch_array($check_status_query); echo xtc_draw_input_field('trackcode', $check_status['orders_trackcode'], 'size=30'); ?><?php echo "(".ENTRY_TRACKCODE." f?r die Sendungsverfolgung)"; ?> </td> </tr> <!--W. Kaiser #Erlaube Sendungstracking --> </tr> <tr> <td class="main"><?php echo ENTRY_NOTIFY_CUSTOMER; ?> <?php echo xtc_draw_checkbox_field('notify', '', true); ?></td> <td class="main"><?php echo ENTRY_NOTIFY_COMMENTS; ?> <?php echo xtc_draw_checkbox_field('notify_comments', '', true); ?></td> </tr> </table></td> <td valign="top"><?php echo xtc_image_submit('button_update.gif', IMAGE_UPDATE); ?></td> </tr> </table></td> </form></tr> <tr> <td colspan="2" align="right"> <?php if (ACTIVATE_GIFT_SYSTEM=='true') { echo ') . '"]' . xtc_image_button('button_gift.gif', IMAGE_ACCOUNTING) . ''; } ?> ', 'popup', 'toolbar=0, width=640, height=600')"> ', 'popup', 'toolbar=0, width=640, height=600')"> <?php // BMC Delete CC Info Start echo ' . '&action=deleteccinfo') . '"]' . xtc_image_button('button_removeccinfo.gif', RemoveCVV) . ''; // BMC Delete CC Info END echo xtc_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td> </tr> <?php } else { ?> <tr> <td width="100%"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="80" rowspan="2"><?php echo xtc_image(DIR_WS_ICONS.'heading_customers.gif'); ?></td> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"> <?php echo xtc_draw_form('orders', FILENAME_ORDERS, '', 'get'); ?> <?php echo HEADING_TITLE_SEARCH . ' ' . xtc_draw_input_field('oID', '', 'size="12"') . xtc_draw_hidden_field('action', 'edit').xtc_draw_hidden_field(xtc_session_name(), xtc_session_id()); ?> </form> </td> </tr> <tr> <td class="main" valign="top">XT Customers</td> <td class="main" valign="top" align="right"><?php echo xtc_draw_form('status', FILENAME_ORDERS, '', 'get'); ?> <?php echo HEADING_TITLE_STATUS . ' ' . xtc_draw_pull_down_menu('status', xtc_array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();"').xtc_draw_hidden_field(xtc_session_name(), xtc_session_id()); ?> </form></td> </tr> </table> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CUSTOMERS; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo 'N?' ; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ORDER_TOTAL; ?></td> <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_DATE_PURCHASED; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_STATUS; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?></td> </tr> <?php if ($_GET['cID']) { $cID = xtc_db_prepare_input($_GET['cID']); $orders_query_raw = "select o.orders_id, o.customers_name, o.customers_id, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . xtc_db_input($cID) . "' and o.orders_status = s.orders_status_id and s.language_id = '" . $_SESSION['languages_id'] . "' and ot.class = 'ot_total' order by orders_id DESC"; } elseif ($_GET['status']) { $status = xtc_db_prepare_input($_GET['status']); $orders_query_raw = "select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . $_SESSION['languages_id'] . "' and s.orders_status_id = '" . xtc_db_input($status) . "' and ot.class = 'ot_total' order by o.orders_id DESC"; } else { $orders_query_raw = "select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . $_SESSION['languages_id'] . "' and ot.class = 'ot_total' order by o.orders_id DESC"; } $orders_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $orders_query_raw, $orders_query_numrows); $orders_query = xtc_db_query($orders_query_raw); while ($orders = xtc_db_fetch_array($orders_query)) { if (((!$_GET['oID']) || ($_GET['oID'] == $orders['orders_id'])) && (!$oInfo)) { $oInfo = new objectInfo($orders); } if ( (is_object($oInfo)) && ($orders['orders_id'] == $oInfo->orders_id) ) { echo ' <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '\'">' . "\n"; } else { echo ' <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '\'">' . "\n"; } ?> <td class="dataTableContent"><?php echo ' . '&action=edit') . '"]' . xtc_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '' . $orders['customers_name']; ?></td> <td class="dataTableContent" align="right"><?php echo $orders['orders_id']; ?></td> <td class="dataTableContent" align="right"><?php echo strip_tags($orders['order_total']); ?></td> <td class="dataTableContent" align="center"><?php echo xtc_datetime_short($orders['date_purchased']); ?></td> <td class="dataTableContent" align="right"><?php echo $orders['orders_status_name']; ?></td> <td class="dataTableContent" align="right"><?php if ( (is_object($oInfo)) && ($orders['orders_id'] == $oInfo->orders_id) ) { echo xtc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo ') . '"]' . xtc_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?></td> </tr> <?php } ?> <tr> <td colspan="5"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText" valign="top"><?php echo $orders_split->display_count($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_ORDERS); ?></td> <td class="smallText" align="right"><?php echo $orders_split->display_links($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], xtc_get_all_get_params(array('page', 'oID', 'action'))); ?></td> </tr> </table></td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($_GET['action']) { case 'delete': $heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_ORDER . ''); $contents = array('form' => xtc_draw_form('orders', FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . ' ' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . ''); $contents[] = array('text' => ' ' . xtc_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY); $contents[] = array('align' => 'center', 'text' => ' ' . xtc_image_submit('button_delete.gif', IMAGE_DELETE) . ' ' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; default: if (is_object($oInfo)) { $heading[] = array('text' => '[' . $oInfo->orders_id . ']' . xtc_datetime_short($oInfo->date_purchased) . ''); $contents[] = array('align' => 'center', 'text' => '' . xtc_image_button('button_edit.gif', IMAGE_EDIT) . ' ' . xtc_image_button('button_delete.gif', IMAGE_DELETE) . ''); //$contents[] = array('align' => 'center', 'text' => ''); $contents[] = array('text' => ' ' . TEXT_DATE_ORDER_CREATED . ' ' . xtc_date_short($oInfo->date_purchased)); if (xtc_not_null($oInfo->last_modified)) $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . xtc_date_short($oInfo->last_modified)); $contents[] = array('text' => ' ' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method); // elari added to display product list for selected order $order = new order($oInfo->orders_id); $contents[] = array('text' => ' ' . sizeof($order->products) . ' Products ' ); for ($i=0; $i<sizeof($order->products); $i++) { $contents[] = array('text' => $order->products[$i]['qty'] . 'x' . $order->products[$i]['name']); if (sizeof($order->products[$i]['attributes']) > 0) { for ($j=0; $j<sizeof($order->products[$i]['attributes']); $j++) { $contents[] = array('text' => ' - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</nobr>' ); } } } // elari End add display products } break; } if ( (xtc_not_null($heading)) && (xtc_not_null($contents)) ) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr> <?php } ?> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> <!--Hier ist Ende--> Link to comment Share on other sites More sharing options...
cub Posted August 15, 2005 Report Share Posted August 15, 2005 Danke!! Link to comment Share on other sites More sharing options...
argy17 Posted August 17, 2005 Report Share Posted August 17, 2005 Is das jetz der Code f?r die 3.03? Brauch ich sonst noch was bzw mu? ich noch was anderes ?ndern? Link to comment Share on other sites More sharing options...
webkasper Posted February 13, 2006 Report Share Posted February 13, 2006 Nur mal am Rande erw?hnt, das funktioniert auch unter der 3.04er Version, einzige ?nderung: folgenden Code nicht in die: admin/includes/application_top.php sondern in die: includes/filenames.php define('FILENAME_DEFAULT', 'start.php'); ciao, der webkasper Link to comment Share on other sites More sharing options...
webkasper Posted February 13, 2006 Report Share Posted February 13, 2006 ... uups, nach dem oben angegebenen Code folgt dann folgendes: define('FILENAME_CUSTOMER_DEFAULT', 'index.php'); bin wohl zu schnell gewesen ;-) Link to comment Share on other sites More sharing options...
cosmerba Posted November 14, 2006 Report Share Posted November 14, 2006 Habe den Code von gswkaiser gerade in die 3.03 eingebunden und es funktioniert wunderbar! Gibt es vielleicht noch die M?glichkeit, wenn man mit mehr als einem Versender arbeitet, die Contribution dahin gehend zu erweitern, dass man in der orders.php noch eine Auswahlm?glichkeit f?r die Paketdienste hat - sprich die notwendigen Links zu den Paketdienste nicht manuel ge?ndert werden m?ssen? Ist jetzt das in der neuen Code-Version mit einbezogen worden oder nicht? Würde mich sehr interessieren. Denn wir werden für Deutschland mit Hermes versenden und für den restlichen EU-Raum mit gls-austria. Wir sind an der Grenze von D und A und so können wir von beiden Kurierdienste Gebrauch machen. Gruss Frank Link to comment Share on other sites More sharing options...
cosmerba Posted November 15, 2006 Report Share Posted November 15, 2006 Folgende Fehlermeldung erscheint: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /var/www/html/shop/admin/orders.php on line 594 In der line 594 ist folgender Code drinne: <?php echo HEADING_TITLE_STATUS . ' ' . xtc_draw_pull_down_menu('status', xtc_array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();"').xtc_draw_hidden_ field(xtc_session_name(), xtc_session_id()); ?> Hab den gesamten Code (orders.php) von wechseldich2 weiter oben kopiert. Wahrscheinlich fehlt irgendwo ein "-Zeichen. Aber wo?? Hiiiilllffeee!! Link to comment Share on other sites More sharing options...
Hennersen Posted December 31, 2006 Report Share Posted December 31, 2006 Wir wollen unseren Kunden ein wenig mehr Komfort bieten, indem wir ihnen einen Link zur Verfolgung ihrer Sendung in der Best?tigungs-eMail anbieten. In unserem Beispiel ist das der Versand per Post AG (DHL). Um das zu erreichen sind einige ?nderungen notwendig (gleichzeitig haben wir die Status-eMail wesentlich aussagef?higer gemacht, die waren doch etwas d?rftig, und viel mehr Informationen verf?gbar!) Hallo! Hat da jemand aktuell in Gebrauch, funktioniert das? Meinerseits besteht hohes Interesse an diesem Feature. Gruß und Danke für eine Antwort, Hennersen Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.