Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No delivery address in customers email??


Guest

Recommended Posts

Hi.

Can someone please tell me what I am missing from the code on checkout_process:

There is no delivery address being sent in the email.. I just get this

 

Delivery Address

------------------------------------------------------

 

 

,

 

 

 

Billing Address

------------------------------------------------------

Some body

123 anystreet

Anytown, PO 98957

United States

 

Heres the code:

// lets start with the email confirmation

$email_order = STORE_NAME . "n" .

EMAIL_SEPARATOR . "n" .

EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "n" .

EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "n" .

EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "nn";

if ($order->info['comments']) {

$email_order .= $order->info['comments'] . "nn";

}

$email_order .= EMAIL_TEXT_PRODUCTS . "n" .

EMAIL_SEPARATOR . "n" .

$products_ordered .

EMAIL_SEPARATOR . "n";

 

$size = sizeof($order_totals);

for ($i=0; $i<$size; $i++) {

$email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "n";

}

 

$email_order .= "n" . EMAIL_TEXT_DELIVERY_ADDRESS . "n" .

EMAIL_SEPARATOR . "n" .

tep_address_label($customer_id, $sendto, 0, '', "n") . "nn" .

EMAIL_TEXT_BILLING_ADDRESS . "n" .

EMAIL_SEPARATOR . "n" .

tep_address_label($customer_id, $billto, 0, '', "n") . "nn";

if (is_object($$payment)) {

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "n" .

EMAIL_SEPARATOR . "n";

$payment_class = $$payment;

$email_order .= $payment_class->title . "nn";

if ($payment_class->email_footer) {

$email_order .= $payment_class->email_footer . "nn";

}

}

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 

----------

 

Thanks :D

 

Tracy

Link to comment
Share on other sites

Tracy,

 

Live shop or not...bumping your post is rude and against the forum rules.

 

If it was working before, (you did test before going live didn't you?), I would suggest uploading a clean back up of your file. If you didn't test beforehand, you can go to the CVS repository and download the version either before or after and check the differences.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...