#1 (permalink)  
Alt 03.05.2004, 18:14
 
Registriert seit: 12.04.2004
Beiträge: 775
Standard

Hallo an Alle.

Alle die mit dem Email versandt Probleme haben haben wir ein L?sung gefunden um Euch evtl zu helfen.

Anleitung:
1. Stellen Sie in Email-Optionen von SENDMAIL auf Mail um.
2. ?ndern Sie die Datei send_order.php ( Im Shopverzeichniss )
wie folgt.

Code:
<?php
/* -----------------------------------------------------------------------------------------
 ? $Id: send_order.php,v 1.3 2003/12/30 09:01:13 fanta2k Exp $ ? 

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

 ? Copyright (c) 2003 XT-Commerce
 ? -----------------------------------------------------------------------------------------
 ? based on:
 ? (c) 2003 ?nextcommerce (send_order.php,v 1.1 2003/08/24); www.nextcommerce.org
 ? 
 ? Released under the GNU General Public License 
 ? ---------------------------------------------------------------------------------------*/

 ?require_once(DIR_FS_INC . 'xtc_get_products_price.inc.php');
 ?require_once(DIR_FS_INC . 'xtc_get_order_data.inc.php');
 ?require_once(DIR_FS_INC . 'xtc_get_attributes_model.inc.php');
 ?// check if customer is allowed to send this order!
 ?$order_query_check = xtc_db_query("SELECT
 ? ? ?	customers_id
 ? ? ?	FROM ".TABLE_ORDERS."
 ? ? ?	WHERE orders_id='".$insert_id."'");
 ? ? ?	
 ?$order_check = xtc_db_fetch_array($order_query_check);
 ?if ($_SESSION['customer_id'] == $order_check['customers_id'])
 ?	{

	$order = new order($insert_id);

	
 ?	$smarty->assign('address_label_customer',xtc_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'));
 ?	$smarty->assign('address_label_shipping',xtc_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'));
 ?	$smarty->assign('address_label_payment',xtc_address_format($order->billing['format_id'], $order->billing, 1, '', '<br>'));
 ?	
 ?	// 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='".$insert_id."'");
 ? ? ? ?$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'].'<br>';	
 ? ? ? ?	$attributes_model .=xtc_get_attributes_model($order_data_values['products_id'],$attributes_data_values['products_options_values']).'<br>';
 ? ? ? ?	}
 ? ? ? ?$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_data_values['final_price'],$price_special=1,$calculate_currencies=0,$show_currencies=1),
 ? ? ? ? ?'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."
 ? ? ?	WHERE orders_id='".$insert_id."'
 ? ? ?	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('oID',$insert_id);
	
	include(DIR_WS_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',$order->info['date_purchased']);
 ?	$smarty->assign('order_data', $order_data);
 ?	$smarty->assign('order_total', $order_total);
 ?	$smarty->assign('NAME',$order->customer['name']);

 ?	// dont allow cache
 ?	$smarty->caching = false;
 ?	
 ?$html_mail=$smarty->fetch(CURRENT_TEMPLATE.'/mail/order_mail.html');
 ?$txt_mail=$smarty->fetch(CURRENT_TEMPLATE.'/mail/order_mail.txt');
 ? ?
 ?// create subject
 ?$order_subject=str_replace('{$nr}',$insert_id,EMAIL_BILLING_SUBJECT_ORDER);
 ?$order_subject=str_replace('{$date}',strftime(DATE_FORMAT_LONG),$order_subject);
 ?$order_subject=str_replace('{$lastname}',$order->customer['firstname'],$order_subject);
 ?$order_subject=str_replace('{$firstname}',$order->customer['firstname'],$order_subject);
 ?
 ?// send mail
 
} else {
$smarty->assign('ERROR','You are not allowed to view this order!');
$smarty->display(CURRENT_TEMPLATE . '/error_message.html');	
}

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

 // send mail to customer
 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 );


?>
Somit bekommen Sie als Shopbetreiber ein Email und der Kunde ebenfalls eine.

Wir hoffen Euch damit geholfrn zu haben.

Gru?
7-once
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 10.05.2004, 23:09
 
Registriert seit: 12.04.2004
Beiträge: 775
Standard

Wie es scheint gibt es mit dieser ?nderung wohl keine Probleme ?!
Hmm da aus bereits 90 mal aufgerufern worden ist scheint es bei euch
zu funktionieren..


Gru?
7-once
www.Seven-Art.de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 10.05.2004, 23:24
Benutzerbild von powerball  
Registriert seit: 13.03.2004
Beiträge: 47
Daumen runter

Hallo,

vielen Dank f?r den Tipp. Habe mir bei der Gelegenheit Deinen Shop angesehen und m?chte mal einen kleinen Tipp geben:

Ihr Konto | Warenkorb | Kasse ist eine Nummer zu gro? und verschiebt sich. Sonst finde ich den Shop klar gegliedert. Was mir wirklich negativ aufgefallen ist, wenn man sich Anmeldet bzw. Einloggt steht normalerweise "Anmelden" . Bei Dir steht schlicht und einfach das Wort "PISSE", was einen sehr Negativen Eindruck hinterl?sst.

Versteh das nicht als "Hier meckert nur einer rum" sondern als kleine Sch?nheitskorrektur st:

Gru?

Markus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 11.05.2004, 16:29
 
Registriert seit: 12.04.2004
Beiträge: 775
Standard

?

Uff da bin jetzt aber platt ?? Ich habe null Ahnung wie das Wort da oder das Gif dahingekommen ist ?? Ich wei? nur das wir vor gut 5 Wochen einen Serverhack hatten. !"!"


Vielen Dank f?r den Tip.


MFG
7
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 11.05.2004, 19:46
 
Registriert seit: 19.12.2003
Beiträge: 6
Standard

du meinst wohl diese datei:

send_order.php :dafuer:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 22.05.2004, 19:33
 
Registriert seit: 08.09.2003
Beiträge: 42
Standard

hallo,
habe den code ?bernommen und im admin die einstellung ge?ndert-es kommt aber die fehlermeldung
"kann mail... nicht initialisieren"

was kann das sein

danke f?r hilfe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 22.05.2004, 22:21
 
Registriert seit: 12.04.2004
Beiträge: 775
Standard

Welche Version hast Du ???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #8 (permalink)  
Alt 23.05.2004, 09:59
 
Registriert seit: 08.09.2003
Beiträge: 42
Standard

Hallo die aktuelle v2.0-1.2
vom 06.05.04
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #9 (permalink)  
Alt 23.05.2004, 17:57
 
Registriert seit: 12.04.2004
Beiträge: 775
Standard

Das oberere Script ist f?r die BETA 1V2. Schick mir mal die PHP Datei per mail zu guck mir die mal an. Vielleicht ist da was anders als bei unserer Version
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #10 (permalink)  
Alt 23.05.2004, 18:01
 
Registriert seit: 12.04.2004
Beiträge: 775
Standard

info@seven-art.de bitte die Datei schicken.
Danke
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
email, lsung, mail, probleme, versandt

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 07:34 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand