#1 (permalink)  
Alt 13.02.2007, 10:07
joy joy ist offline
Neuer Benutzer
 
Registriert seit: 25.01.2006
Beiträge: 24
Standard Nur bei CC bestellungen Email mit Anhang senden

Hallo,

ich möchte, das bei Kreditkartenbestellung in der Email ein PDF als Anhang mit versendet wird. Wie kann ich das auf einfache art realisieren?

MFG Joy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 13.02.2007, 10:25
xt:Commerce Support Kunde
 
Registriert seit: 13.10.2006
Beiträge: 697
Standard

Zunächst mal, indem du die Attachment-Funktion wieder scharf machst, indem du in inc/xtc_php_mail.php den Kommentar vor
PHP-Code:
//$mail->AddAttachment($path_to_attachement);                     // add attachments 
entfernst. Da du aber auch Mails ohne Attachment haben wirst solltest du auch nich prüfen, ob ein Attachment überhaupt benötigt wird, etwa so:
PHP-Code:
        if(!empty($path_to_attachement)) {
                
$mail->AddAttachment($path_to_attachement);                     // add attachments
        

Jetzt musst du das Attachment in send_order.php noch übergeben:
PHP-Code:
        // send mail to customer
        
xtc_php_mail(EMAIL_BILLING_ADDRESSEMAIL_BILLING_NAME$order->customer['email_address'], $order->customer['firstname'].' '.$order->customer['lastname'], ''EMAIL_BILLING_REPLY_ADDRESSEMAIL_BILLING_REPLY_ADDRESS_NAME''''$order_subject$html_mail$txt_mail); 
ändern in
PHP-Code:
        // send mail to customer
        
xtc_php_mail(EMAIL_BILLING_ADDRESSEMAIL_BILLING_NAME$order->customer['email_address'], $order->customer['firstname'].' '.$order->customer['lastname'], ''EMAIL_BILLING_REPLY_ADDRESSEMAIL_BILLING_REPLY_ADDRESS_NAME$order->info['payment_method']=="creditcard" "/path/to/attachment" ""''$order_subject$html_mail$txt_mail); 
Bei $order->info['payment_method'] musst du natürlich auf den Wert prüfen, der deine Kreditkartenzahlmethode widerspiegelt. Und der Pfad zum Attachment muss natürlich stimmen.

Matt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 13.02.2007, 11:11
joy joy ist offline
Neuer Benutzer
 
Registriert seit: 25.01.2006
Beiträge: 24
Standard

Vielen Dank erst mal, aber muß das ? in der mail_order.php mit rein?

Ja und 'payment_method' wäre dann doch der Module Nahme CC oder ?

// 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->info['payment_method']=="creditcard" ? "/path/to/attachment" : "", '', $order_subject, $html_mail, $txt_mail);

Geändert von joy (13.02.2007 um 11:14 Uhr)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 13.02.2007, 11:20
xt:Commerce Support Kunde
 
Registriert seit: 13.10.2006
Beiträge: 697
Standard

Es gibt in der aktuellen Version keine Datei mail_order.php.

Und auch payment_method ist wie gesagt davon abhängig, welches Modul du nutzt, es gibt da diverse in xt:C, unter anderem das allgemeine oder das von iPayment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
anhang, bestellungen, email, senden

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


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Mailer Error Bei Neuen Kunden Und Bestellungen blubbbb Shopbereich 11 21.04.2005 14:00
Bestellungs Email Funktioniert Nicht. blazertreiber Installation und Konfiguration 2 21.02.2005 15:51


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:59 Uhr.

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

xt:Commerce is a SafeCharge brand