Customer Number in Email
austinkamshan <[email protected]> 11 Sep 2003 10:06:35 -0000
| Newsgroups | gmane.comp.web.oscommerce.contributions |
|---|---|
| Message-ID | <a1d2de627f2bb622b588e5b332cb1237@osCommerce-Forums> |
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=227794#227794
----------------------------------------------------------------
I do not know if you figured it out already. In OSC 2.2MS2 I used this to get the customer id number to show up in the order email.
In catalog/checkout_process.php
[code] $email_order = STORE_NAME . "\n" .
EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
EMAIL_TEXT_CUSTOMER_NUMBER . ' ' . (int)$customer_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";
[/code]
and I added this to catalog/includes/languages/english/checkout_process.php:
[code] define('EMAIL_TEXT_CUSTOMER_NUMBER', 'Customer Number:');[/code]
It works for me so far. I'll try to help you if it doesn't work, but no promises since I am very new to this.
Thank you JB for the code you supplied a long time ago, it really led me in the right direction!
HTH
Kamie