Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Products not Appearing in Order Email


Guest

Recommended Posts

Hello all,

 

The order email that is sent out to customers (and store owner) is not including the products purchased. All I am getting is the following:

 

Chiba Bogu.com
------------------------------------------------------
Order Number: x
Detailed Invoice: https://www.mydomain.com/catalog/account_history_info.php?order_id=X
Date Ordered: Saturday 30 October, 2004

Products
------------------------------------------------------
------------------------------------------------------
Sub-Total: $XXX 
Shipping Rate (Domestic): $XXX
Total: $XXX

Delivery Address
------------------------------------------------------
John Doe
Somewhere
Cityville, 90210
USA

Billing Address
------------------------------------------------------
John Doe
Somewhere
Cityville, 90210
USA


Payment Method
------------------------------------------------------
2CheckOut

 

You can see that the products section is empty. In my checkout_process.php I have:

 

// 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) . "\n\n";
 if ($order->info['comments']) {
   $email_order .= tep_db_output($order->info['comments']) . "\n\n";
 }
 $email_order .= 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_TEXT_DELIVERY_ADDRESS . "\n" . 
                   EMAIL_SEPARATOR . "\n" .
                   tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
 }

 $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
                 EMAIL_SEPARATOR . "\n" .
                 tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
 if (is_object($$payment)) {
   $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
                   EMAIL_SEPARATOR . "\n";
   $payment_class = $$payment;
   $email_order .= $payment_class->title . "\n\n";
   if ($payment_class->email_footer) { 
     $email_order .= $payment_class->email_footer . "\n\n";
   }
 }
 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Looks fine... dunno why just the products ordered are missing. Can't be because of the 2checkout subprocess because the addresses are intact.

 

Any ideas?

Link to comment
Share on other sites

Hello all,

 

The order email that is sent out to customers (and store owner) is not including the products purchased.  All I am getting is the following:

 

Chiba Bogu.com
------------------------------------------------------
Order Number: x
Detailed Invoice: https://www.mydomain.com/catalog/account_history_info.php?order_id=X
Date Ordered: Saturday 30 October, 2004

Products
------------------------------------------------------
------------------------------------------------------
Sub-Total: $XXX 
Shipping Rate (Domestic): $XXX
Total: $XXX

Delivery Address
------------------------------------------------------
John Doe
Somewhere
Cityville, 90210
USA

Billing Address
------------------------------------------------------
John Doe
Somewhere
Cityville, 90210
USA
Payment Method
------------------------------------------------------
2CheckOut

 

You can see that the products section is empty. In my checkout_process.php I have:

 

// 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) . "\n\n";
?if ($order->info['comments']) {
? ?$email_order .= tep_db_output($order->info['comments']) . "\n\n";
?}
?$email_order .= 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_TEXT_DELIVERY_ADDRESS . "\n" . 
? ? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? ? ?tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
?}

?$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? ?tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
?if (is_object($$payment)) {
? ?$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
? ? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n";
? ?$payment_class = $$payment;
? ?$email_order .= $payment_class->title . "\n\n";
? ?if ($payment_class->email_footer) { 
? ? ?$email_order .= $payment_class->email_footer . "\n\n";
? ?}
?}
?tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Looks fine... dunno why just the products ordered are missing.  Can't be because of the 2checkout subprocess because the addresses are intact.

 

Any ideas?

Could the problem be in admin mystore settings add extra emails and host email details.

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

I wouldn't think so. The mails are going out, I have Send Emails set to TRUE and have filled in Send Extra Emails.

 

I searched around the Master Products support forum to see if that has anything to do with it, but couldn't find anything. I wonder...

Link to comment
Share on other sites

I wouldn't think so.  The mails are going out, I have Send Emails set to TRUE and have filled in Send Extra Emails.

 

I searched around the Master Products support forum to see if that has anything to do with it, but couldn't find anything.  I wonder...

checkout_process.php looks ok may mail smtp mail server problem ??

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...