Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank order from oscommerce


gauravgs

Recommended Posts

Posted

Hello everybody,

 

I am not able to figure out what's the reason that the administrator is receiving a blank order email from osCommerce(store).

 

Moreover in the admin section, there is a blank entry in the 'orders' section under 'customers' also .

 

The email that I received was having nothing and the whole body of the email was blank i.e. "billing address", "product", "delivery address", "total", "sub total" all were blank.

 

what might be the reason for this.

 

please help me rectify this.

 

 

thanks

Posted

hello,

anybody listening here. Please help me understand why the stores administrator is receiving blank mails.

 

thank you.

Posted
hello,

anybody listening here. Please help me understand why the stores administrator is receiving blank mails.

 

thank you.

Something went wrong (just a guess based on the information provided).

Posted

thanks for your reply,

 

no nothing went wrong, I just received an email from my client stating that he is receiving blank emails from oscommerce (the stores site).

Posted

again I received a Blank email which was having nothing in it's body. >_< :'(

 

why is it happening again and again?

is there somebody in this forum who is facing similar problems.

Posted
again I received a Blank email which was having nothing in it's body. >_< :'(

 

why is it happening again and again?

is there somebody in this forum who is facing similar problems.

OK, the emails are working, just empty. Is it all emails ie order process and new account and forgotten password and order update, or just some of them.

 

What osc version do you have, have you made changes, installed contributions?

Posted

thanks for replying :-)

no it's only that email which confirms the admin of new order placed. i.e. order process (the subject of the blank email)

 

I am using latest version of oscommerce i.e. v2.2 rc2a.

 

yes I have installed a contribution of "date of birth pulldown" but the mail was not sending even before I installed this contribution. so it is sure that this contribution didn't cause any problems.

Posted
thanks for replying :-)

no it's only that email which confirms the admin of new order placed. i.e. order process (the subject of the blank email)

 

I am using latest version of oscommerce i.e. v2.2 rc2a.

 

yes I have installed a contribution of "date of birth pulldown" but the mail was not sending even before I installed this contribution. so it is sure that this contribution didn't cause any problems.

Do you have this in your checkout_process.php file

 

// 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 .= $order->info['payment_method'] . "\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);

 

// 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

Posted
yes , these lines are there in my "checkout_process.php" file.

Don't know an answer then.

 

There is an addon called pending_order_email v1.0.1 (not the later version) which is easy to install. It will send an email to the address that is set Admin in send extra order emails to, but it will do it when you land on the confirmation page.

 

It may show something.

Posted

it is not that I receive blank mails everytime, but it is happening to me for quite some time now.

 

can it happen because of loss of connectivity of the customer computer at the time of placing the order ?

  • 2 weeks later...
Posted

I've been having a similar problem, too. My store has been up for 2 years with email confirmations working, but recently 1 out of every 10 orders or so will have a blank email confirmation. I can see the order in Admin, but the customer and myself receive a completely blank email.

 

I'm on Yahoo hosting (which is terrible, I know).

  • 2 weeks later...
Posted
I've been having a similar problem, too. My store has been up for 2 years with email confirmations working, but recently 1 out of every 10 orders or so will have a blank email confirmation. I can see the order in Admin, but the customer and myself receive a completely blank email.

 

I'm on Yahoo hosting (which is terrible, I know).

 

 

Did you find any solution to this problem yet.?

  • 7 months later...
Posted

I have been having the same issue but even worse than this for the last few months.

 

I had OScommerce for 2 yrs and now whenever an email is sent from OScommerce to the customer, whether I send a shipped confirmation within OScommerce or one is automatically generated all customer received emails are blank. At the time this happened my emails coming in for received orders changed format as well.

 

I raised a separate thread on this but no help at all. Ther server did not change configuration and I had not added any contributions. I am lost.

Posted

If they were working correctly, and now are not, something has changed either on your site or something with your hosting account.

  • 3 months later...
Posted

Not sure if this is the same as what you get, but I sometimes get an email confirmation with no order_id

 

The order in the orders table of the DB does have an order_id, but the customer information will be completely blank.

 

As well there will be entries in the other order_* tables such as order_history order_product with a '0' for the order_id.

 

I put some debug code into checkout_confirmation.php and found that even though the order is created, the function to get the order number which is tep_db_insert_id() must be returning NULL.

 

Are the symptoms you have the same?

Archived

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

×
×
  • Create New...