Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

e missing in "order number" in email to purchaser


libman

Recommended Posts

Posted

Hi folks,

 

Can someone tell me why an orderers email after purchasing would be missing an "e" in order number,

See the email the orderer receives below. Notice the first line below the dashes that is " Ord r Number: 63"

 

Thanks,

G.L.

 

 

Tom's Store

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

Ord r Number: 63

Detailed Invoice: https://www.tomsstore.com/account_history_i...php?order_id=63

Date Ordered: Monday 26 February, 2007

 

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

Products

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

1 x Chestnut Hill Men’s Performance Plus Pique Polo (CH100) = $30.00

Color : White

Size : Large

Personalization : Picante

Font Choice : Century Schoolbook

Special Requests : Awlgrip claret

following

Thanks,

Libman

Posted

Quite strange! Could you please post your includes/languages/english/account_history_info.php?

 

jon

It's all just ones and zeros....

Posted
Quite strange! Could you please post your includes/languages/english/account_history_info.php?

 

jon

 

<?php

/*

$Id: account_history_info.php,v 1.17 2003/06/05 15:43:49 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE_1', 'My Account');

define('NAVBAR_TITLE_2', 'History');

define('NAVBAR_TITLE_3', 'Order #%s');

 

define('HEADING_TITLE', 'Order Information');

 

define('HEADING_ORDER_NUMBER', 'Order #%s');

define('HEADING_ORDER_DATE', 'Order Date:');

define('HEADING_ORDER_TOTAL', 'Order Total:');

 

define('HEADING_DELIVERY_ADDRESS', 'Delivery Address');

define('HEADING_SHIPPING_METHOD', 'Shipping Method');

 

define('HEADING_PRODUCTS', 'Products');

define('HEADING_TAX', 'Tax');

define('HEADING_TOTAL', 'Total');

 

define('HEADING_BILLING_INFORMATION', 'Billing Information');

define('HEADING_BILLING_ADDRESS', 'Billing Address');

define('HEADING_PAYMENT_METHOD', 'Payment Method');

 

define('HEADING_ORDER_HISTORY', 'Order History');

define('HEADING_COMMENT', 'Comments');

define('TEXT_NO_COMMENTS_AVAILABLE', 'No comments available.');

 

define('TABLE_HEADING_DOWNLOAD_DATE', 'Link expires: ');

define('TABLE_HEADING_DOWNLOAD_COUNT', ' downloads remaining');

define('HEADING_DOWNLOAD', 'Download links');

?>

Thanks,

Libman

Posted

Let's try another:

 

includes\languages\english\account_history.php (Line 18): define('TEXT_ORDER_NUMBER', 'Order Number:');

 

You could also search your entire store using a text editor for the following:

 

"Ord r Number"

 

jon

It's all just ones and zeros....

Posted

Hi Jon,

 

Thanks for responding. There is nothing in the file you suggested. Everything is in order. I did do a mod so when emails are sent out the email is formatted. This was done in the checkout_process. php file. Here's what I did:

 

// GLandry added these mods from lines 265 to 274

$test .= <<<EOF

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#743240" bgcolor="#FFFFFF"><tr><td><img src="http://ltsshipstore.com/images/YOUR_ORDER_HEADER.jpg" width="762" height="170" alt="order information"></td></tr><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="10"><tr><td><p align="right"><font color="#743240" size="2">LT's inc.<br>37 Danforth Street, Portland, ME 04101 USA<br>Phone: 800-800-7785 / 207-774-1104<br>Fax: 207-772-3724<br>E-mail:[email protected]<br>Web Address: http://www.LTSMAINE.COM</font></p><font color="#37527F">Thank you for shopping Back Cove's LT's inc. Ship's Store. Below is a summary of your order and order information. </font></p><p><font color="#37527F">If you see any errors please contact LT's inc. at the above numbers. </font></p><p><font color="#37527F"> Here is your order:</font></p><hr>$email_order<hr></td></tr></table></td></tr></table></body>

EOF;

 

Now I'm wondering if there is a problem in the above file checkout_process. php in this area. I'm not a php pro so I have no idea:

 

see below:

// lets start with the email confirmation $email_order = STORE_NAME . "\n" .

$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_SEPARATOR . "\n" .

EMAIL_TEXT_PRODUCTS . "\n" .

EMAIL_SEPARATOR . "\n" .

$products_ordered .

EMAIL_SEPARATOR . "\n\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";

}

}

 

 

Thanks for your help and insight...Ohh, What piece of software would check through every file in oscommerce?

G.L.

 

 

 

 

Let's try another:

 

includes\languages\english\account_history.php (Line 18): define('TEXT_ORDER_NUMBER', 'Order Number:');

 

You could also search your entire store using a text editor for the following:

 

"Ord r Number"

 

jon

Thanks,

Libman

Archived

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

×
×
  • Create New...