for ($i=0, $n=count($order_totals); $i<$n; $i++) {
    $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
}


if ($oOrder->content_type != 'virtual') {
    $email_order .= "\n" . $aLang['email_text_delivery_address'] . "\n" .
                    $aLang['email_separator'] . "\n" .
                    oos_address_label($_SESSION['customer_id'], $_SESSION['sendto'], 0, '', "\n") . "\n";
}


$email_order .= "\n" . $aLang['email_text_billing_address'] . "\n" .
                $aLang['email_separator'] . "\n" .
                oos_address_label($_SESSION['customer_id'], $_SESSION['billto'], 0, '', "\n") . "\n\n";

if (is_object($$_SESSION['payment'])) {
    $email_order .= $aLang['email_text_payment_method'] . "\n" .
                    $aLang['email_separator'] . "\n";
    $payment_class = $$_SESSION['payment'];
    $email_order .= $payment_class->title . "\n\n";
    if ($payment_class->email_footer) {
        $email_order .= $payment_class->email_footer . "\n\n";
    }
}

if (!isset($_SESSION['man_key'])) {
    oos_mail($oOrder->customer['firstname'] . ' ' . $oOrder->customer['lastname'], $oOrder->customer['email_address'], $aLang['email_text_subject'], nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
}
Example #2
0
// lets start with the email confirmation
$email_order = STORE_NAME . "\n" . $aLang['email_separator'] . "\n" . $aLang['email_text_order_number'] . ' ' . $insert_id . "\n" . $aLang['email_text_invoice_url'] . ' ' . oos_href_link($aModules['account'], $aFilename['account_history_info'], 'order_id=' . $insert_id, 'SSL', false) . "\n" . $aLang['email_text_date_ordered'] . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
if ($oOrder->info['comments']) {
    $email_order .= oosDBOutput($oOrder->info['comments']) . "\n\n";
}
if (isset($_SESSION['campaigns_id'])) {
    $email_order .= $aLang['email_separator'] . "\n" . $aLang['email_text_campaigns'] . "\n" . oos_get_campaigns_name($_SESSION['campaigns_id']) . "\n\n";
}
$email_order .= $aLang['email_text_products'] . "\n" . $aLang['email_separator'] . "\n" . $products_ordered . $aLang['email_separator'] . "\n";
for ($i = 0, $n = count($order_totals); $i < $n; $i++) {
    $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
}
if ($oOrder->content_type != 'virtual') {
    $email_order .= "\n" . $aLang['email_text_delivery_address'] . "\n" . $aLang['email_separator'] . "\n" . oos_address_label($_SESSION['customer_id'], $_SESSION['sendto'], 0, '', "\n") . "\n";
}
$email_order .= "\n" . $aLang['email_text_billing_address'] . "\n" . $aLang['email_separator'] . "\n" . oos_address_label($_SESSION['customer_id'], $_SESSION['billto'], 0, '', "\n") . "\n\n";
if (is_object(${$_SESSION}['payment'])) {
    $email_order .= $aLang['email_text_payment_method'] . "\n" . $aLang['email_separator'] . "\n";
    $payment_class = ${$_SESSION}['payment'];
    $email_order .= $payment_class->title . "\n\n";
    if ($payment_class->email_footer) {
        $email_order .= $payment_class->email_footer . "\n\n";
    }
}
if (!isset($_SESSION['man_key'])) {
    oos_mail($oOrder->customer['firstname'] . ' ' . $oOrder->customer['lastname'], $oOrder->customer['email_address'], $aLang['email_text_subject'], nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
}
// send emails to other people
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
    if (SEND_BANKINFO_TO_ADMIN == '1') {
        if ($_POST['banktransfer_fax'] != "on") {