Jump to content

YePix

Members
  • Content count

    204
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by YePix

  1. YePix

    Duplicate order mail

    order emails are sent to customers twice. Does anyone have an idea where to look for the error?
  2. YePix

    Duplicate order mail

    I found the error . in the email class the addresses were not cleaned up
  3. YePix

    Duplicate order mail

    i changed this // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } in // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', 'info@shopmail.com', EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } no reaction. it will continue to receive duplicate emails
  4. YePix

    Duplicate order mail

    info@shopmail.com
  5. YePix

    Duplicate order mail

    absolutely normal, store owner emailaddress
  6. YePix

    Duplicate order mail

    Shopemail is: info@shopmail.com Customer Mail is: kunde@bestellung.com As you can see, the two do not agree
  7. YePix

    Duplicate order mail

    Yes that's it. That's the problem and I can not explain why it is
  8. YePix

    Duplicate order mail

    No. Shop email address Email from and additional order mail to admin is always the same email address
  9. YePix

    Duplicate order mail

    No. 1x Admin and 2x customer
  10. YePix

    Duplicate order mail

    Hello Rainer, unfortunately not. the order mails arrive twice at all mail accounts
  11. YePix

    Duplicate order mail

    Yes that was it. Thanks. But now I need the order mail for the admin
  12. YePix

    Duplicate order mail

    nothing changes
  13. YePix

    Duplicate order mail

    and this my classes/mail require_once 'ext/modules/PHPMailer/class.phpmailer.php'; $phpMail = new PHPMailer(); class email { var $html; var $text; var $html_text; var $lf; var $debug = 0; var $debug_output = 'error_log'; function email($headers = '') { global $phpMail; $phpMail->XMailer = 'osCommerce Mailer ' . tep_get_version(); $phpMail->SMTPDebug = $this->debug; $phpMail->Debugoutput = $this->debug_output; $phpMail->CharSet = CHARSET; $phpMail->WordWrap = 998; if (EMAIL_LINEFEED == 'CRLF') { $this->lf = "\r\n"; } else { $this->lf = "\n"; } } function add_text($text = '') { global $phpMail; $phpMail->IsHTML(false); $this->text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); } function add_html($html, $text = NULL, $images_dir = NULL) { global $phpMail; $phpMail->IsHTML(true); $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br />', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->html = $phpMail->msgHTML($this->html, $images_dir); } function add_attachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') { global $phpMail; $phpMail->AddAttachment($path, $name, $encoding, $type, $disposition); } function build_message() { //out of work function } function send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $reply_to = false) { global $phpMail; if ((strstr($to_name, "\n") != false) || (strstr($to_name, "\r") != false)) { return false; } if ((strstr($to_addr, "\n") != false) || (strstr($to_addr, "\r") != false)) { return false; } if ((strstr($subject, "\n") != false) || (strstr($subject, "\r") != false)) { return false; } if ((strstr($from_name, "\n") != false) || (strstr($from_name, "\r") != false)) { return false; } if ((strstr($from_addr, "\n") != false) || (strstr($from_addr, "\r") != false)) { return false; } $phpMail->From = $from_addr; $phpMail->FromName = $from_name; $phpMail->AddAddress($to_addr, $to_name); if ($reply_to) { $phpMail->AddReplyTo(EMAIL_SMTP_REPLYTO, STORE_NAME); } else { $phpMail->AddReplyTo($from_addr, $from_name); } $phpMail->Subject = $subject; if (!empty($this->html)) { $phpMail->Body = $this->html; $phpMail->AltBody = $this->html_text; } else { $phpMail->Body = $this->text; } if (EMAIL_TRANSPORT == 'smtp' || EMAIL_TRANSPORT == 'gmail') { $phpMail->IsSMTP(); $phpMail->Host = EMAIL_SMTP_HOSTS; $phpMail->SMTPAuth = EMAIL_SMTP_AUTHENTICATION; $phpMail->Username = EMAIL_SMTP_USER; $phpMail->Password = EMAIL_SMTP_PASSWORD; if (EMAIL_TRANSPORT == 'gmail') { $phpMail->Port = 465; $phpMail->SMTPSecure = 'ssl'; } } else { $phpMail->isSendmail(); } if (!$phpMail->Send()) { return false; } return true; } } /* ** Altered for Mail Manager ** */ // eliminate line feeds as <br> class emailMailManager extends email { function add_html($html, $text = NULL, $images_dir = NULL) { $this->html = $html; //tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->find_html_images($images_dir); } } /* ** EOF alterations for Mail Manager ** */
  14. YePix

    Duplicate order mail

    2.3.4-1 EDGE this is my mail in checkout_process: $email_order = EMAIL_CUSTOMER_ORDERINFO . '&nbsp;' . STORE_NAME . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_INVOICE_URL . "\n" . tep_href_link('account_history_info.php', 'order_id=' . $insert_id, 'SSL', false) . "\n\n" . EMAIL_CUSTOMER .'&nbsp;'. $order->customer['firstname'] . ' ' . $order->customer['lastname']."\n" . ENTRY_TELEPHONE_NUMBER .'&nbsp;'. $order->customer['telephone']."\n" . '<font color="#990000"><strong>' . strftime(DATE_FORMAT_LONG) . '&nbsp;' . $datum . '</strong></font><font color="#0099FF"><strong>' . "\n\n"; // PWA guest checkout echo $OSCOM_Hooks->call('pwa', 'PwaCheckoutMailMod'); if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n"; } $email_order .= '</strong></font>' . EMAIL_SEPARATOR . "\n\n" . // EMAIL_TEXT_PRODUCTS . "\n" . // EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_SEPARATOR . "\n" . '<font color="#990000">' . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . '</font>' . "\n\n"; if (SHOW_PRODUCTS_SHIPPING_TIME_ON == 'true') { $today_year = date('Y'); list($lieferdatum_von,$lieferdatum_bis) = get_lieferzeitraum($order->info['country_id']); $email_order .= "\n" . TEXT_LIEFERUNG_PI . $lieferdatum_von . TEXT_LIEFERUNG_PI_TO . $lieferdatum_bis . $today_year . "\n\n"; } } if (SEND_IN_MAIL_BILLING_ADDRESS == 'true') { $email_order .= "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; } if (is_object($$payment)) { $email_order .= EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_PAYMENT_METHOD . "\n"; $payment_class = $$payment; $email_order .= $order->info['payment_method'] . "\n\n"; if (isset($payment_class->email_footer)) { $email_order .= $payment_class->email_footer . "\n\n"; } } if (SEND_EMAIL_TSTM == 'true') { $email_order .= TEXT_INFORMATION_TSTM . "\n"; } tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } // load the after_process function from the payment modules $payment_modules->after_process(); // remove items from wishlist if customer purchased them $wishList->clear(); $cart->reset(true); // unregister session variables used during checkout tep_session_unregister('sendto'); tep_session_unregister('billto'); tep_session_unregister('shipping'); tep_session_unregister('payment'); tep_session_unregister('comments'); // POINTS REWARDS BS echo $OSCOM_Hooks->call('checkout_process', 'CheckoutProcessUnregister'); tep_redirect(tep_href_link('checkout_success.php', '', 'SSL'));
  15. YePix

    Duplicate order mail

    thanks, but also with sendmail nothing changes
  16. Hello people, could someone look here and tell me if he sees a mistake? The database is not updated. friendship_applied and friendship_order_id are not written Update: //Friendship customers discount if (FRIENDSHIP_ENABLE == 'True'){ $friendship = get_friendship_discount(FRIENDSHIP_ORDER_STATUS); $friendship_discount = FRIENDSHIP_DISCOUNT; $this_order = $insert_id; if (($friendship!=false) and ($friendship['friendship_newcustomer']==1)){ $update_friendship_info_query = tep_db_query("update " . TABLE_CUSTOMERS_FRIENDSHIP . " set friendship_applied = 1, friendship_order_id = " . $insert_id . ", date_discount_applied = now() where friendship_id = '" . $friendship['friendship_id'] . "'"); $customer_friendship = tep_db_fetch_array($update_friendship_info_query); $sql_data_array = array('friendship_customer_id' => $friendship['friendship_friend_id'], 'friendship_friend_id' => $friendship['friendship_customer_id'], 'friendship_date' => 'now()', 'friendship_applied' => '0', 'friendship_discount' => $friendship_discount, 'friendship_newcustomer' => '0', 'friendship_order_id' => (int)$insert_id); tep_db_perform(TABLE_CUSTOMERS_FRIENDSHIP, $sql_data_array); }elseif($friendship!=false){ $update_friendship_info_query = tep_db_query("update " . TABLE_CUSTOMERS_FRIENDSHIP . " set friendship_applied = 1, date_discount_applied = now() where friendship_id = '" . $friendship['friendship_id'] . "'"); $customer_friendship = tep_db_fetch_array($update_friendship_info_query); } } //End Friendship customers discount Funktion: function get_friendship_discount($status) { global $customer_id; $customer_friendship_query = tep_db_query("select * from " .TABLE_CUSTOMERS_FRIENDSHIP. " where friendship_customer_id = '".(int)$customer_id."' and friendship_applied = 0"); if (tep_db_num_rows($customer_friendship_query) > 0){ $customer_friendship = tep_db_fetch_array($customer_friendship_query); if ($customer_friendship['friendship_newcustomer'] == 1){ //Controlar que el cliente que ha recomendado la tienda ya haya realizado algun pedido anteriormente $friendship_orders_query = tep_db_query("select count(*) as 'orders' from " .TABLE_ORDERS. " where customers_id = '".$customer_friendship['friendship_friend_id']."' and orders_status = '".$status."' "); $friendship_orders = tep_db_fetch_array($friendship_orders_query); $num_orders = $friendship_orders['orders']; if ($num_orders < 1){ return false; } else{ return $customer_friendship ; } }else{ $order_status_query = tep_db_query("select orders_status from " .TABLE_ORDERS. " where orders_id = '".(int)$customer_friendship['friendship_order_id']."' "); $order_status = tep_db_fetch_array($order_status_query); if ($order_status['orders_status'] == $status) return $customer_friendship ; else return false; } }else return false; }
  17. you should not always believe what you hear or read! There are serious differences in osCommerce! I just hope that you have a backup of your previous software
  18. YePix

    Contact Us Form ~ Set Time

    But you have to install something that prevents the misuse of the forms. it does not matter if 5 or 30 min. the spam mails come anyway
  19. @juniorpanu post your email.php and the language file email.php
  20. YePix

    Contact Us Form ~ Set Time

    look in the admin/modules/action recorder => email
  21. Es wäre hilfreich, wenn du schildern könntest wie du das Problem gelöst hast.
  22. Hat die Seite mit allen Zahlungsmethoden mal funktioniert oder ist der Fehler erst nach dem ein Zahlungsmodul installiert wurde aufgetretten ? Schalte mal eine Versandmethode hinzu und prüffe ob es anschliessend mit der Zahlungsart funktioniert
  23. Dann lade die Dateien einzeln wieder auf den Server ohne diese zu vereinen und schau es funktioniert. Ich denke du hast die checkout_payment und die checkout_shipping zusammen gefasst oder ?
  24. Hi, setz die seite erstmal aus dem iframe raus und probiers obs ohne funktioniert.
×