PDA

Shop Support News Archive - Shopbetreiber News -> Forum : Xtc, Bestellungen Im Admin Nochmal Versenden


TechWay
28.04.2006, 19:10
mit dieser orders.php, habt ihr die Möglichkeit die Bestellung nochmals per Email an den Kunden und/oder Admin zu schicken!

in zeile 73 und 74 könnt ihr festelgen wer die Email erhalten soll:

$send_to_customer = true;
$send_to_admin = false;


die orders.php wird einfach mit der vorhandenen Datei, im admin-Verzeichnis ausgetauscht (Sicherung nicht vergessen!)

anschließend müsst Ihr in der Datei lang/german/admin/orders.php folgendes hinzufügen:

define('SUCCESS_ORDER_SEND', 'Erfolg: Die Bestellung wurde erfolgreich nochmals per Email verschickt!');


und falls notwendig das ganze auch für die englische und/oder andere Sprachen...

Viel Spaß damit!

HarryBoo
28.04.2006, 22:25
Danke TechWay für dieses Mod :)

Werde ich gleich mal ausprobieren.

Gruß
HarryBoo

TechWay
04.05.2006, 19:37
ein kleiner bug war noch drin, den habe ich jetzt behoben.

ihr findet jetzt in der ZIP-Datei, zwei Versionen von der orders.php

die erste arbeitet nur mit einem Button (wie mein erster beitrag oben):
[attachmentid=227]

und die zweite Version hat zwei Buttons drin:
[attachmentid=228]

eine Installationsanleitung ist ebenfalls mit drin...

Viele Grüße
TechWay

voliere.net
14.06.2006, 10:40
So ein Mist, ich bekomme diese Fehlermeldung. die mail geht trotzdem raus

''>ZITAT</div>Warning: main(/catalog/lang/german/modules/payment/moneyorder.php) [function.main]: failed to open stream: No such file or directory in /home/imkerbi/public_html/catalog/admin/orders.php on line 146

Warning: main() [function.include]: Failed opening '/catalog/lang/german/modules/payment/moneyorder.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/imkerbi/public_html/catalog/admin/orders.php on line 146

Warning: constant() [function.constant]: Couldn't find constant MODULE_PAYMENT_MONEYORDER_TEXT_TITLE in /home/imkerbi/public_html/catalog/admin/orders.php on line 147

Warning: Cannot modify header information - headers already sent by (output started at /home/imkerbi/public_html/catalog/admin/orders.php:146) in /home/imkerbi/public_html/catalog/admin/includes/functions/general.php on line 130[/b]

an stelle der ''>ZITAT</div>{$PAYMENT_INFO_HTML}[/b] erhalte ich in der zugesandten mail folgendes: ''>ZITAT</div>MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION [/b]

wer kann mir helfen? sonst ist das modul ne klasse sache, vor allem, wenn telef. bestellungen kommen.

TechWay
14.06.2006, 13:59
Hallo Claudia,

die Datei "/catalog/lang/german/modules/payment/moneyorder.php" existiert bei dir im Shop?

es hängt auf jeden fall mit dieser Zeile 146 zusammen:

include (DIR_FS_LANGUAGES.$_SESSION['language'].'/modules/payment/'.$order->info['payment_method'].'.php');


er findet die Sprachdatei nicht... kannst du mal probieren anstatt der Variable DIR_FS_LANGUAGES diese zu verwenden:

DIR_WS_LANGUAGES
DIR_FS_CATALOG_LANGUAGES

viele Grüße
Steffen

voliere.net
17.06.2006, 22:00
so, dank techway den fehler gefunden:

Zeile 146 muss lauten:

include (''.DIR_FS_LANGUAGES.$_SESSION['language'].'/modules/payment/'.$order->info['payment_method'].'.php');

in beiden dateien steht (".DIR_WS_LANGUAGE.....

voliere.net
25.08.2006, 17:51
wer in den mail die persönlich anrede mit drin hat sollte folgendes nehmen (order.php für admin und kunden)

[code]
<?php

/ --------------------------------------------------------------
$Id: orders.php 1189 2005-08-28 15:27:00Z hhgag $

XT-Commerce - community made shopping
http://www.xt-commerce.com

Copyright (c) 2003 XT-Commerce
--------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(orders.php,v 1.109 2003/05/28); www.oscommerce.com
(c) 2003 nextcommerce (orders.php,v 1.19 2003/08/24); www.nextcommerce.org

Released under the GNU General Public License
--------------------------------------------------------------
Third Party contribution:
OSC German Banktransfer v0.85a Autor: Dominik Guder <osc@guder.org>
Customers Status v3.x (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist

credit card encryption functions for the catalog module
BMC 2003 for the CC CVV Module

Released under the GNU General Public License
-------------------------------------------------------------- /

require ('includes/application_top.php');
require_once (DIR_FS_CATALOG.DIR_WS_CLASSES.'class.phpmailer.ph p');
require_once (DIR_FS_INC.'xtc_php_mail.inc.php');
require_once (DIR_FS_INC.'xtc_add_tax.inc.php');
require_once (DIR_FS_INC.'changedataout.inc.php');
require_once (DIR_FS_INC.'xtc_validate_vatid_status.inc.php');
require_once (DIR_FS_INC.'xtc_get_attributes_model.inc.php');
require_once (DIR_FS_INC . 'xtc_get_customers_gender.inc.php'); // <--
require_once (DIR_FS_INC . 'xtc_get_customers_lastname.inc.php'); // <--

// initiate template engine for mail
$smarty = new Smarty;
require (DIR_WS_CLASSES.'currencies.php');
$currencies = new currencies();


if ((($_GET['action'] == 'edit') || ($_GET['action'] == 'update_order')) && ($_GET['oID'])) {
$oID = xtc_db_prepare_input($_GET['oID']);

$orders_query = xtc_db_query("select orders_id from ".TABLE_ORDERS." where orders_id = '".xtc_db_input($oID)."'");
$order_exists = true;
if (!xtc_db_num_rows($orders_query)) {
$order_exists = false;
$messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error');
}
}

require (DIR_WS_CLASSES.'order.php');
if ((($_GET['action'] == 'edit') || ($_GET['action'] == 'update_order')) && ($order_exists)) {
$order = new order($oID);
}

$lang_query = xtc_db_query("select languages_id from " . TABLE_LANGUAGES . " where directory = '" . $order->info['language'] . "'");
$lang = xtc_db_fetch_array($lang_query);
$lang=$lang['languages_id'];

if (!isset($lang)) $lang=$_SESSION['languages_id'];
$orders_statuses = array ();
$orders_status_array = array ();
$orders_status_query = xtc_db_query("select orders_status_id, orders_status_name from ".TABLE_ORDERS_STATUS." where language_id = '".$lang."'");
while ($orders_status = xtc_db_fetch_array($orders_status_query)) {
$orders_statuses[] = array ('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']);
$orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name'];
}
switch ($_GET['action']) {
//TECHWAY ANFANG ################################################## ########################
case 'send' :
$send_to_customer = 0;
$send_to_admin = 0;

if (isset($_GET['stc']))
$send_to_customer = $_GET['stc'];
if (isset($_GET['sta']))
$send_to_admin = $_GET['sta'];

$oID = xtc_db_prepare_input($_GET['oID']);
$order = new order($oID);
require (DIR_FS_CATALOG.DIR_WS_CLASSES.'xtcPrice.php');
$xtPrice = new xtcPrice($order->info['currency'], $order->info['status']);
// set dirs manual
$smarty->template_dir = DIR_FS_CATALOG.'templates';
$smarty->compile_dir = DIR_FS_CATALOG.'templates_c';
$smarty->config_dir = DIR_FS_CATALOG.'lang';

$smarty->assign('address_label_customer', xtc_address_format($order->customer['format_id'], $order->customer, 1, '', '
'));
$smarty->assign('address_label_shipping', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, '', '
'));
if ($_SESSION['credit_covers'] != '1') {
$smarty->assign('address_label_payment', xtc_address_format($order->billing['format_id'], $order->billing, 1, '', '
'));
}
$smarty->assign('csID', $order->customer['csID']);

// get products data
$order_query = xtc_db_query("SELECT
products_id,
orders_products_id,
products_model,
products_name,
final_price,
products_quantity
FROM ".TABLE_ORDERS_PRODUCTS."
WHERE orders_id='".$oID."'");

$order_data = array ();
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 .= $attributes_data_values['products_options'].':'.$attributes_data_values['products_options_values'].'
';
$attributes_model .= xtc_get_attributes_model($order_data_values['products_id'], $attributes_data_values['products_options_values']).'
';
}
$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' => $xtPrice->xtcFormat($order_data_values['final_price'], true),'PRODUCTS_SINGLE_PRICE' => $xtPrice->xtcFormat($order_data_values['final_price']/$order_data_values['products_quantity'], true), 'PRODUCTS_QTY' => $order_data_values['products_quantity']);
}
// get order_total data
$oder_total_query = xtc_db_query("SELECT
title,
text,
sort_order
FROM ".TABLE_ORDERS_TOTAL. Anwalt Hamm"
WHERE orders_id='".$oID."'
ORDER BY sort_order ASC");

$order_total = array ();
while ($oder_total_values = xtc_db_fetch_array($oder_total_query)) {

$order_total[] = array ('TITLE' => $oder_total_values['title'], 'TEXT' => $oder_total_values['text']);
}

// assign language to template for caching
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
$smarty->assign('logo_path', HTTP_SERVER.DIR_WS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/img/');
$smarty->assign('oID', $oID);
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include (''.DIR_FS_LANGUAGES.$_SESSION['language'].'/modules/payment/'.$order->info['payment_method'].'.php');
$payment_method = constant(strtoupper('MODULE_PAYMENT_'.$order->info['payment_method'].'_TEXT_TITLE'));
}
$smarty->assign('PAYMENT_METHOD', $payment_method);
$smarty->assign('DATE', xtc_date_long($order->info['date_purchased']));
$smarty->assign('GENDER',xtc_get_customers_gender($_SESSION['customer_id'])); // <--
$smarty->assign('LASTNAME',xtc_get_customers_lastname($_SES SION['customer_id'])); // <--
$smarty->assign('order_data', $order_data);
$smarty->assign('order_total', $order_total);
$smarty->assign('NAME', $order->customer['name']);
$smarty->assign('COMMENTS', $order->info['comments']);
$smarty->assign('EMAIL', $order->customer['email_address']);
$smarty->assign('PHONE',$order->customer['telephone']);

// PAYMENT MODUL TEXTS
// EU Bank Transfer
if ($order->info['payment_method'] == 'eustandardtransfer') {
$smarty->assign('PAYMENT_INFO_HTML', MODULE_PAYMENT_EUTRANSFER_TEXT_DESCRIPTION);
$smarty->assign('PAYMENT_INFO_TXT', str_replace("
", "\n", MODULE_PAYMENT_EUTRANSFER_TEXT_DESCRIPTION));
}

// MONEYORDER
if ($order->info['payment_method'] == 'moneyorder') {
$smarty->assign('PAYMENT_INFO_HTML', MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION);
$smarty->assign('PAYMENT_INFO_TXT', str_replace("
", "\n", MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION));
}

// dont allow cache
$smarty->caching = false;

$html_mail = $smarty->fetch(CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/order_mail.html');
$txt_mail = $smarty->fetch(CURRENT_TEMPLATE.'/mail/'.$_SESSION['language'].'/order_mail.txt');

// create subject
$order_subject = str_replace('{$nr}', $oID, EMAIL_BILLING_SUBJECT_ORDER);
$order_subject = str_replace('{$date}', strftime(DATE_FORMAT_LONG), $order_subject);
$order_subject = str_replace('{$lastname}', $order->customer['lastname'], $order_subject);
$order_subject = str_replace('{$firstname}', $order->customer['firstname'], $order_subject);

// send mail to admin
if ($send_to_admin==1)
xtc_php_mail($order->customer['email_address'], $order->customer['firstname'], EMAIL_BILLING_ADDRESS, STORE_NAME, EMAIL_BILLING_FORWARDING_STRING, $order->customer['email_address'], $order->customer['firstname'], '', '', $order_subject, $html_mail, $txt_mail);

// send mail to customer
if ($send_to_customer==1)
xtc_php_mail(EMAIL_BILLING_ADDRESS, EMAIL_BILLING_NAME, $order->customer['email_address'], $order->customer['firstname'].' '.$order->customer['lastname'], '', EMAIL_BILLING_REPLY_ADDRESS, EMAIL_BILLING_REPLY_ADDRESS_NAME, '', '', $order_subject, $html_mail, $txt_mail);

if (AFTERBUY_ACTIVATED == 'true') {
require_once (DIR_WS_CLASSES.'afterbuy.php');
$aBUY = new xtc_afterbuy_functions($oID);
if ($aBUY->order_send())
$aBUY->process_order();
}
$messageStack->add_session(SUCCESS_ORDER_SEND, 'success');

xtc_redirect(xtc_href_link(FILENAME_ORDERS, 'oID='.$_GET['oID']));
//TECHWAY ENDE ################################################## ##########################

case 'update_order' :
$oID = xtc_db_prepare_input($_GET['oID']);
$status = xtc_db_prepare_input($_POST['status']);
$comments = xtc_db_prepare_input($_POST['comments']);
// $order = new order($oID);
$order_updated = false;
$check_status_query = xtc_db_query("select customers_name, customers_email_address, orders_status, date_purchased from ".TABLE_ORDERS." where orders_id = '".xtc_db_input($oID)."'");
$check_status = xtc_db_fetch_array($check_status_query);
if ($check_status['orders_status'] != $status || $comments != '') {
xtc_db_query("update ".TABLE_ORDERS." set orders_status = '".xtc_db_input($status)."', last_modified = now() where orders_id = '".xtc_db_input($oID)."'");

$customer_notified = '0';
if ($_POST['notify'] == 'on') {
$notify_comments = '';
if ($_POST['notify_comments'] == 'on') {
//$notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments)."\n\n";
$notify_comments = $comments;
} else {
$notify_comments = '';
}

// assign language to template for caching
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = false;

// set dirs manual
$smarty->template_dir = DIR_FS_CATALOG.'templates';
$smarty->compile_dir = DIR_FS_CATALOG.'templates_c';
$smarty->config_dir = DIR_FS_CATALOG.'lang';

$smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
$smarty->assign('logo_path', HTTP_SERVER.DIR_WS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/img/');

$smarty->assign('NAME', $check_status['customers_name']);
$smarty->assign('ORDER_NR', $oID);
$smarty->assign('ORDER_LINK', xtc_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HIS TORY_INFO, 'order_id='.$oID, 'SSL'));
$smarty->assign('ORDER_DATE', xtc_date_long($check_status['date_purchased']));
$smarty->assign('NOTIFY_COMMENTS', $notify_comments);
$smarty->assign('ORDER_STATUS', $orders_status_array[$status]);

$html_mail = $smarty->fetch(CURRENT_TEMPLATE.'/admin/mail/'.$order->info['language'].'/change_order_mail.html');
$txt_mail = $smarty->fetch(CURRENT_TEMPLATE.'/admin/mail/'.$order->info['language'].'/change_order_mail.txt');

xtc_php_mail(EMAIL_BILLING_ADDRESS, EMAIL_BILLING_NAME, $check_status['customers_email_address'], $check_status['customers_name'], '', EMAIL_BILLING_REPLY_ADDRESS, EMAIL_BILLING_REPLY_ADDRESS_NAME, '', '', EMAIL_BILLING_SUBJECT, $html_mail, $txt_mail);
$customer_notified = '1';
}

xtc_db_query("insert into ".TABLE_ORDERS_STATUS_HISTORY." (orders_id, orders_status_id, date_added, customer_notified, comments) values ('".xtc_db_input($oID)."', '".xtc_db_input($status)."', now(), '".$customer_notified."', '".xtc_db_input($comments)."')");

$order_updated = true;
}

if ($order_updated) {
$messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
} else {
$messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
}

xtc_redirect(xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array ('action')).'action=edit'));
break;
case 'deleteconfirm' :
$oID = xtc_db_prepare_input($_GET['oID']);

xtc_remove_order($oID, $_POST['restock']);

xtc_redirect(xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array ('oID', 'action'))));
break;
// BMC Delete CC info Start
// Remove CVV Number
case 'deleteccinfo' :
$oID = xtc_db_prepare_input($_GET['oID']);

xtc_db_query("update ".TABLE_ORDERS." set cc_cvv = null where orders_id = '".xtc_db_input($oID)."'");
xtc_db_query("update ".TABLE_ORDERS." set cc_number = '0000000000000000' where orders_id = '".xtc_db_input($oID)."'");
xtc_db_query("update ".TABLE_ORDERS." set cc_expires = null where orders_id = '".xtc_db_input($oID)."'");
xtc_db_query("update ".TABLE_ORDERS." set cc_start = null where orders_id = '".xtc_db_input($oID)."'");
xtc_db_query("update ".TABLE_ORDERS." set cc_issue = null where orders_id = '".xtc_db_input($oID)."'");

xtc_redirect(xtc_href_link(FILENAME_ORDERS, 'oID='.$_GET['oID'].'&action=edit'));
break;

case 'afterbuy_send' :
$oID = xtc_db_prepare_input($_GET['oID']);
require_once (DIR_FS_CATALOG.'includes/classes/afterbuy.php');
$aBUY = new xtc_afterbuy_functions($oID);
if ($aBUY->order_send())
$aBUY->process_order();

break;

// BMC Delete CC Info End
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Tranistional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['language_charset']; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

<?php

require (DIR_WS_INCLUDES.'header.php');
?>



<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td class="columnLeft2" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

</table></td>

<td class="boxCenter" width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php

if (($_GET['action'] == 'edit') && ($order_exists)) {
// $order = new order($oID);
?>
<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 . ' Nr : ' . $oID . ' - ' . $order->info['date_purchased']; ?></td>
</tr>
<tr>
<td class="main" valign="top">XT Customers</td>
</tr>
</table>
<?php echo '' . BUTTON_BACK . ' (' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('action'))) . ')'; ?>

<?php echo BUTTON_EDIT ?> (<?php echo xtc_href_link(FILENAME_ORDERS_EDIT, 'oID='.$_GET['oID'].'&cID=' . $order->customer['ID']);?>)

</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="java script: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 '' . $order->customer['email_address'] . ' (' . $order->customer['email_address'] . ')'; ?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CUSTOMERS_VAT_ID; ?></td>
<td class="main"><?php echo $order->customer['vat_id']; ?></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"

ducky
01.10.2006, 17:56
Hallo,

möchte den Beitrag nochmals raufholen, weil mir ein Fehler vorliegt, der evtl. mit der von voliere vorgegebene order.php zu tun hat.

Folgendes Problem:
Wenn ich ein Artikel mit 0 € habe, bekomme ich die Rechnungsadresse nicht übernommen, das heisst, ich habe nur Kundenadresse und Lieferadresse, die mir im XT Commerce angezeigt wird.

Habe die Version 3.0.4 SP 1.

Kann da jemand was entdecken, woran das liegen kann ?

Gruß und danke
ducky

Blackdevil
02.02.2007, 11:47
Hallo,

ich habe das Modul von TechWay schon etwas länger installiert, jedoch war mir bis dato ein kleiner Bug (in meinen Augen) noch nicht aufgefallen.

Wenn man die Bestell-E-Mail nochmals versendet wird nicht das Datum der Bestellung sondern das aktuelle Datum als Betreff in der neuen E-Mail gesetzt.

Dies kann man wie folgt ändern:
innerhalb des Moduls folgende Zeile suchen:
$order_subject = str_replace('{$date}', strftime(DATE_FORMAT_LONG), $order_subject);
und durch folgendes ersetzen:
$order_subject = str_replace('{$date}', xtc_date_long($order->info['date_purchased']), $order_subject);

Damit sollte das Bestelldatum genommen werden.

Mit freundlichen Grüßen aus Berlin
Fabian

Theo
19.04.2007, 14:10
Hallo
Hab das mal bei mir eingebaut und bekomme nu diesen fehler wenn ich in bearbeiten gehe.
Kann mir da einer weiterhelfen

Warning: Missing argument 3 for xtc_get_attributes_model(), called in /home/htdocs/web32/html/testshop/admin/orders.php on line 606 and defined in /home/htdocs/web32/html/testshop/inc/xtc_get_attributes_model.inc.php on line 16


Warning: Missing argument 3 for xtc_get_attributes_model(), called in /home/htdocs/web32/html/testshop/admin/orders.php on line 606 and defined in /home/htdocs/web32/html/testshop/inc/xtc_get_attributes_model.inc.php on line 16


Warning: Missing argument 3 for xtc_get_attributes_model(), called in /home/htdocs/web32/html/testshop/admin/orders.php on line 606 and defined in /home/htdocs/web32/html/testshop/inc/xtc_get_attributes_model.inc.php on line 16

Gruß Theo

Gecko6
11.05.2007, 15:49
Wie sieht das denn mit SP2.1 aus. Kann ich das uneingeschränkt übernehmen?

Gruß Gecko6

Habe es jetzt in die SP2.1 eingebaut bekomme aber folgende Fehlermeldung sobald ich auf senden klicke:
''>ZITAT</div>Warning: Cannot modify header information - headers already sent by (output started at /home/www/.../shop/lang/german/admin/orders.php:1) in /home/www/.../shop/admin/includes/functions/general.php on line 130[/b]

Die Mail kommt allerdings an. Was muß ich machen???

TIMBaER
27.09.2007, 21:47
Hallo

Ich habe das sendmail Paket gezogen und die order2.php verwendet. Klappt Super auch bei der XT:C 3.04 SP2.1 Version.

Ein ganz kleines Problem habe ich aber noch. Wenn ich nun eine Bestellung neu versende klappt das auch. Aber beim Empfänger steht oben in der eMail die Mail-Adresse des Kunden als Versender (nur bei der Mail an den Admin). Dies ist eigendlich kein großes Problem. Jedoch hätte ich gerne, das dort die Übliche Mailadresse Shopadresse dort steht, kann man das ändern, oder habe nur ich das Problem?

Gruß

tsie
27.09.2007, 22:20
Also bei mir läufts unter v2.1 garnicht. Hat evtl. einer eine Version die für v2.1 läuft?

Dooleys
15.12.2007, 17:44
hallo, hab eben wieder den mod in mein neuen shop eingebaut. allerdings scheints die orders.php hier nicht mehr mit der neue, im xtc paket entaltenen übereinzu stimmen. es kommt eine fehlermeldung nach klicken des buttons (nochmal an admin senden und nochmal an kunden senden)

Fehlermeldung:
Warning: Missing argument 3 for xtc_get_attributes_model() in /srv/www/vhosts/eagleparts.de/httpdocs/inc/xtc_get_attributes_model.inc.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/eagleparts.de/httpdocs/inc/xtc_get_attributes_model.inc.php:16) in /srv/www/vhosts/eagleparts.de/httpdocs/admin/includes/functions/general.php on line 130

die emails gehen aber beide raus.

hab eben die orders.php von hier und der orig. xtc mit winmerge verglichen. ein paar unterschiede sind drin. aber auch nach abgleich kommt die fehlermeldung.

kann da jemand mal nachgrasen. bin leider kein php profi :-)

besten dank :)

Dooleys
15.12.2007, 17:45
hallo, hab eben wieder den mod in mein neuen shop eingebaut. allerdings scheints die orders.php hier nicht mehr mit der neue, im xtc paket entaltenen übereinzu stimmen. es kommt eine fehlermeldung nach klicken des buttons (nochmal an admin senden und nochmal an kunden senden)

Fehlermeldung:
Warning: Missing argument 3 for xtc_get_attributes_model() in /srv/www/vhosts/eagleparts.de/httpdocs/inc/xtc_get_attributes_model.inc.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/eagleparts.de/httpdocs/inc/xtc_get_attributes_model.inc.php:16) in /srv/www/vhosts/eagleparts.de/httpdocs/admin/includes/functions/general.php on line 130

die emails gehen aber beide raus.

hab eben die orders.php von hier und der orig. xtc mit winmerge verglichen. ein paar unterschiede sind drin. aber auch nach abgleich kommt die fehlermeldung.

kann da jemand mal nachgrasen. bin leider kein php profi :-)

besten dank :)

Dooleys
15.12.2007, 17:45
sorry fürs doppelt posten. hab nicht gelesen dass es freigeschalten wird -.-
sorry admin/mod :P

beta
17.12.2007, 19:41
Wäre super, wenn jemand eine funktionierende Version für Sp2.1 hat.

aqua
21.01.2008, 18:17
Hallo,

ich habe mir gerade das Modul eingebaut, habe aber Probleme. Ich bekomme zwar keine Fehlermeldung, aber trotzdem funzt es net.

Ich habe bei den Bestellungen einfach keine neuen Buttons, nix nada. Muss man noch irgendwas per SQL befehlen??? Habe ich was übersehen?

Vielen Dank für die Hilfe.

aqua
21.01.2008, 19:34
Hallo,

ich habe das Modul nun auch installiert. Bekomme zwar keinen Fehler, mir werden aber die Buttons zum Versenden nicht angezeigt.

Was habe ich vergessen?

Vielen Dank für die Hilfe.

nabooch
08.03.2008, 17:27
Hallo zusammen

Wenn jemand die Erweiterung für die Sp2.1 verwenden möchte und den folgenden Fehler sieht

''>ZITAT</div>Warning: Missing argument 3 for xt-Commerce / xt:Commerce_get_attributes_model() in
.../inc/xt-Commerce / xt:Commerce_get_attributes_model.inc.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at .../inc/xt-Commerce / xt:Commerce_get_attributes_model.inc.php:16) in
.../admin/includes/functions/general.php on line 130[/b]

soll in der orders.php folgendes suchen

$model = xt-Commerce / xt:Commerce_get_attributes_model($order->products[$i]['id'], $order->products[$i]['attributes'][$j]['value']);

und dies ersetzen durch

$model = xt-Commerce / xt:Commerce_get_attributes_model($order->products[$i]['id'], $order->products[$i]['attributes'][$j]['value'],$order->products[$i]['attributes'][$j]['option']);


Hoffe es nützt jemandem

Gruss naboo

Junior
11.03.2008, 08:05
''>ZITAT(beta @ Dec 17 2007, 19:41) 39049
Wäre super, wenn jemand eine funktionierende Version für Sp2.1 hat.
[/b]
Hat das schon jemand mit der sp2.1 am laufen ?

Gruß Junior

veganxjasmin
04.04.2008, 17:00
bei mir läufts leider auf sp2 auch nicht

habe auch das problem mit den attributes_model und dass als Absender die E-mail des Kunden erscheint

SJ-Tuning
15.04.2008, 00:28
Hallo, gibts nach den 50 Änderungen und Updates eine
fertige Version?
Ich hätte das Modul gerne, aber wer blickt jetzt noch durch was wo gemacht
werden muss?

Danke, würde mich freuen, habe auch heute Geburtstag :D

SJ-Tuning
15.04.2008, 00:29
Hallo, gibts nach den 50 Änderungen und Updates eine
fertige Version?
Ich hätte das Modul gerne, aber wer blickt jetzt noch durch was wo gemacht
werden muss?

Danke, würde mich freuen, habe auch heute Geburtstag :D

nolimit
20.06.2008, 22:58
''>ZITAT(naboo @ Mar 8 2008, 18:27) 43936
Hallo zusammen

Wenn jemand die Erweiterung für die Sp2.1 verwenden möchte und den folgenden Fehler sieht
soll in der orders.php folgendes suchen

$model = xt-Commerce / xt:Commerce_get_attributes_model($order->products[$i]['id'], $order->products[$i]['attributes'][$j]['value']);

und dies ersetzen durch

$model = xt-Commerce / xt:Commerce_get_attributes_model($order->products[$i]['id'], $order->products[$i]['attributes'][$j]['value'],$order->products[$i]['attributes'][$j]['option']);
Hoffe es nützt jemandem

Gruss naboo
[/b]

Hat leider nicht den gewünschten Erfolg gebracht. Hat das schon einer in die SP2.1 ohne Fehlermeldung hingekriegt?

Junior
02.07.2008, 08:37
''>ZITAT(nolimit @ Jun 20 2008, 22:58) 52060
Hat leider nicht den gewünschten Erfolg gebracht. Hat das schon einer in die SP2.1 ohne Fehlermeldung hingekriegt?
[/b]
Hinbekommen schon, nur muß ich das ganze erst herausklabustern denn ich hab noch andere Sachen in der orders.php mit drin.

rhservice
23.08.2008, 15:06
''>ZITAT(Junior @ Jul 2 2008, 8:37) 54183
Hinbekommen schon, nur muß ich das ganze erst herausklabustern denn ich hab noch andere Sachen in der orders.php mit drin.
[/b]

Hallo, hat das jemand auch nun für die 3.04 SP2.1??

Dooleys
23.08.2008, 23:49
hi leute, in zeile 121 fehlt das 3. argument.

die zeile 121 der originalen xt-Commerce / xt:Commerce admin/orders.php muss so aussehen:

''>ZITAT</div>$attributes_model .= xt-Commerce / xt:Commerce_get_attributes_model($order_data_value s['products_id'], $attributes_data_values['products_options_values'].'
',$attributes_data_values['products_options']);
[/b]

dann klappts auch ohne warning ;)

rhservice
24.08.2008, 16:54
''>ZITAT(Dooleys @ Aug 23 2008, 23:49) 70861
hi leute, in zeile 121 fehlt das 3. argument.

die zeile 121 der originalen xt-Commerce / xt:Commerce admin/orders.php muss so aussehen:
dann klappts auch ohne warning ;)
[/b]


und dann klappt es auch mit dem 3.04 SP2.1? <_<