Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add line to email sent to store owner


doon1947

Recommended Posts

Hi,

 

2.2 ms2

 

The email sent to store owner (the customer order) ouputs as follows

 

Delivery Address

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

John Smith

123 Main St

Annapolis MD 21114

 

I would like to add the customers email address to this output.

 

In checkout_process.php I find the code:

 

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";

}

 

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

 

I add the email address line to the code

 

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" .

$order->customer['email_address'] .

"\n";

}

 

The the email address does not appear in the email. I'm sure I've made this same modification on a previous site and had it working.

 

Al.

Link to comment
Share on other sites

I have a live site and now a sandbox development site both running the same code in checkout_process.php.

The sandbox site adds the email address to the "delivery address" but the live site does not.

I am baffled by this, anybody got any ideas

Link to comment
Share on other sites

I'd delete the file in the live store and reupload the file from the dev store. It really sounds as if the 2 files just aren't the same - for whatever reason.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

you need to specify the email address all your doing is putting an extra address line for your customer

so your getting

Somebody

1234 place

Somewhere,usa

1234 place

Somewhere,usa

 

email code

if ($order->content_type != 'virtual') {

$email_order .= "\n" . EMAIL_TEXT_EMAIL. "\n" . \\note the EMAIL_TEXT_EMAIL

EMAIL_SEPARATOR . "\n" .

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

$order->customer['email_address'] .

"\n";

}

 

or whatever the text is described in oscommerce

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...