Zen Cart Logo
Forums / Managing Customers and Orders / Order Confirmation email address?

Order Confirmation email address?

Views: 5,605

Results 1 to 13 of 13
7 Oct 2006, 8:51 AM
#1
portraitartist avatar

portraitartist

New Zenner

Join Date:
Mar 2006
Posts:
86
Plugin Contributions:
0

Order Confirmation email address?

Hi,
I would like to get the order confirmation email with the customer's email address in the "From" field insteed of my website's email address. This way I could reply directly to the customer and add the email address to the address book easier.
Can I do this myself by changing some template, or file, or this question should be on the wish list forum?

Thanks,

7 Oct 2006, 9:03 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Order Confirmation email address?

At the bottom of your /includes/classes/order.php

you have this around line 971:// send additional emails if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']); $html_msg['EXTRA_INFO'] = $extra_info['HTML']; zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id, $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra'); }change to:```
// send additional emails
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
$extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
$email_order . $extra_info['TEXT'], $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $html_msg, 'checkout_extra');
}


NOTE: When changing the "send from" email address like that you may end up with some of it being treated as spam/junk since it may look like it is being relayed.  To counter this, you can try setting the Admin switch for "Emails must send from known domain".
25 Oct 2007, 8:11 AM
#3
gomby avatar

gomby

New Zenner

Join Date:
Sep 2006
Posts:
1
Plugin Contributions:
0

Re: Order Confirmation email address?

Hello!

Because i'm not know very goog english i write just the cod:
I modify the functions/functions_email.php on line 157

$email_reply_to_address = ($email_reply_to_address) ? $email_reply_to_address : ($module=='contact_us' || $module=='tell_a_friend' ? $from_email_address : /*EMAIL_FROM*/$from_email_address);
 $email_reply_to_name    = ($email_reply_to_name)    ? $email_reply_to_name    : ($module=='contact_us' || $module=='tell_a_friend' ? $from_email_name    : /*STORE_NAME*/$from_email_name);
```Bye!
3 Jan 2011, 12:30 PM
#4
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: Order Confirmation email address?

DrByte:

At the bottom of your /includes/classes/order.php

you have this around line 971:// send additional emails if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']); $html_msg['EXTRA_INFO'] = $extra_info['HTML']; zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id, $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra'); }change to:```
// send additional emails
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
$extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
$email_order . $extra_info['TEXT'], $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $html_msg, 'checkout_extra');
}

> 
> NOTE: When changing the "send from" email address like that you may end up with some of it being treated as spam/junk since it may look like it is being relayed.  To counter this, you can try setting the Admin switch for "Emails must send from known domain".

Sorry for reviving this old conversation - but this solution worked great for me - is it possible to do the same with Copy or Create Account emails as well?

i.e. When the customer creates an account - it sends them an email and when they hit reply then the default address in their "to" field is: [email protected] -

and when I receive the copy of the create account - and hit "reply" i want the customer's address to appear in the "to" field automatically...

Thanks!
21 May 2012, 6:10 PM
#5
s4stationery avatar

s4stationery

New Zenner

Join Date:
Apr 2012
Location:
chennai, india
Posts:
2
Plugin Contributions:
0

Re: Order Confirmation email address?

I am using Zen Cart 1.5 and the lines is not as shown in your Solution

// send additional emails
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
$extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];

25 Jan 2014, 5:26 PM
#6
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Order Confirmation email address?

Hello,

I am looking for a place to make a little cosmetic change in confirmation e-mail (1.5.1).
Now it is coming like this:

Payment Method

PayPal


This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to [email protected]

I would like to see it like this:

Payment Method

Credit Cards or PayPal


This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to [email protected]

Just to change "PayPal" to "Credit Cards or PayPal"

By scanning for word "PayPal" there are so many places to look that I am lost.

Your advise will be greatly appreciated.:smile:

25 Jan 2014, 5:42 PM
#7
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: Order Confirmation email address?

idtags:

Hello,

I am looking for a place to make a little cosmetic change in confirmation e-mail (1.5.1).
Now it is coming like this:

I would like to see it like this:

Just to change "PayPal" to "Credit Cards or PayPal"

By scanning for word "PayPal" there are so many places to look that I am lost.

Your advise will be greatly appreciated.:smile:

Hey buddy,

I would look in includes/languages/modules/payment/paypal.php

OR includes/languages/YOUR_TEMPLATE/modules/payment/paypal.php

I'm quite sure that's where you'll find it.

If that doesn't work - check Developers Toolkit, and search for "paypal" - without the "" of course.

What you want to pay attention to is any of the paypal.php files that are located in a LANGUAGE folder - Developers Tookit gives you the folder as well.

If you don't come right, let us know - I'll put a bit more effort into my answer when I'm in-front of my development workstation.

25 Jan 2014, 6:37 PM
#8
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Order Confirmation email address?

Thank you for quick Reply.

I am sorry, but on my store there is none of paypal.php with path you suggest.
I did search for paypal.php in Developers Tookit.

The only I have is /admin/includes/languages/english/paypal.php

Searching for **PayPal **is too broad for people who are not programmers.
It gives too many results.

Could it be just a "Title" for Payment method somewhere in Admin Panel?

So if there is any close suggestion, please let me know.:smile:

yaseent:

Hey buddy,

I would look in includes/languages/modules/payment/paypal.php

OR includes/languages/YOUR_TEMPLATE/modules/payment/paypal.php

I'm quite sure that's where you'll find it.

If that doesn't work - check Developers Toolkit, and search for "paypal" - without the "" of course.

What you want to pay attention to is any of the paypal.php files that are located in a LANGUAGE folder - Developers Tookit gives you the folder as well.

If you don't come right, let us know - I'll put a bit more effort into my answer when I'm in-front of my development workstation.

25 Jan 2014, 8:58 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,100
Plugin Contributions:
56

Re: Order Confirmation email address?

Which "type" of PayPal are you using? PayPal Express Checkout?

26 Jan 2014, 12:03 AM
#10
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Order Confirmation email address?

lat9:

Which "type" of PayPal are you using? PayPal Express Checkout?

I am using PayPal Payment Standard option.

26 Jan 2014, 1:05 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,100
Plugin Contributions:
56

Re: Order Confirmation email address?

idtags:

I am using PayPal Payment Standard option.
FWIW, the PayPal Express Checkout payment method tends to be "more robust" (i.e. fewer lost transaction errors reported). Given that you're using what you're using, though, you'll need to:

  1. Copy /includes/languages/english/modules/payment/paypal.php to /includes/languages/english/modules/payment/YOUR_TEMPLATE/paypal.php
  2. Modify the copied file. The first few lines of that file for Zen Cart v1.5.1 look like:
<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2012 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version GIT: $Id: Author: DrByte  Thu Aug 16 01:57:33 2012 -0400 Modified in v1.5.1 $
 */

  define('MODULE_PAYMENT_PAYPAL_TEXT_ADMIN_TITLE', 'PayPal Payments Standard');
  define('MODULE_PAYMENT_PAYPAL_TEXT_ADMIN_TITLE_NONUSA', 'PayPal Website Payments Standard');
  define('MODULE_PAYMENT_PAYPAL_TEXT_CATALOG_TITLE', 'PayPal');
  if (IS_ADMIN_FLAG === true) {
  define('MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION', '<strong>PayPal Payments Standard</strong> (Older PayPal service, less reliable than Express Checkout)<br /><a href="https://www.paypal.com" target="_blank">Manage your PayPal account.</a><br /><br /><font color="green">Configuration Instructions:</font><br />1. <a href="http://www.zen-cart.com/partners/paypal-std" target="_blank">Sign up for your PayPal account - click here.</a><br />2. In your PayPal account, under "Profile",<ul><li>set your <strong>Instant Payment Notification Preferences</strong> URL to:<br /><nobr><pre>'.str_replace('index.php?main_page=index','ipn_main_handler.php',zen_catalog_href_link(FILENAME_DEFAULT, '', 'SSL')) . '</pre></nobr><br />(If another valid URL is already entered, you may leave it alone.)<br /><span class="alert">Be sure that the Checkbox to enable IPN is checked!</span><br /><br /></li><li>in <strong>Website Payments Preferences</strong> set your <strong>Automatic Return URL</strong> to:<br /><nobr><pre>'.zen_catalog_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL',false).'</pre></nobr></li>' . (defined('MODULE_PAYMENT_PAYPALSTD_STATUS') ? '' : '<li>... and click "install" above to enable PayPal Standard support... and "edit" to tell Zen Cart your PayPal settings.</li>') . '</ul><font color="green"><hr /><strong>Requirements:</strong></font><br /><hr />*<strong>PayPal Account</strong> (<a href="http://www.zen-cart.com/partners/paypal-std" target="_blank">click to setup/configure</a>)<br />*<strong>CURL with SSL</strong> is strongly recommended<br />*<strong>Port 80 (and port 443 if SSL is enabled)</strong> is used for <strong>*bidirectional*</strong> communication with the gateway, so must be open on your host\'s router/firewall.<br />*<strong>Settings</strong> within your PayPal account must be configured as described above.' );
 } else {
    define('MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION', '<strong>PayPal</strong>');
  }

and you'll want to change those to

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2012 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version GIT: $Id: Author: DrByte  Thu Aug 16 01:57:33 2012 -0400 Modified in v1.5.1 $
 */

  define('MODULE_PAYMENT_PAYPAL_TEXT_ADMIN_TITLE', 'PayPal Payments Standard');
  define('MODULE_PAYMENT_PAYPAL_TEXT_ADMIN_TITLE_NONUSA', 'PayPal Website Payments Standard');
  define('MODULE_PAYMENT_PAYPAL_TEXT_CATALOG_TITLE', 'Credit Cards or PayPal');
  if (IS_ADMIN_FLAG === true) {
  define('MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION', '<strong>PayPal Payments Standard</strong> (Older PayPal service, less reliable than Express Checkout)<br /><a href="https://www.paypal.com" target="_blank">Manage your PayPal account.</a><br /><br /><font color="green">Configuration Instructions:</font><br />1. <a href="http://www.zen-cart.com/partners/paypal-std" target="_blank">Sign up for your PayPal account - click here.</a><br />2. In your PayPal account, under "Profile",<ul><li>set your <strong>Instant Payment Notification Preferences</strong> URL to:<br /><nobr><pre>'.str_replace('index.php?main_page=index','ipn_main_handler.php',zen_catalog_href_link(FILENAME_DEFAULT, '', 'SSL')) . '</pre></nobr><br />(If another valid URL is already entered, you may leave it alone.)<br /><span class="alert">Be sure that the Checkbox to enable IPN is checked!</span><br /><br /></li><li>in <strong>Website Payments Preferences</strong> set your <strong>Automatic Return URL</strong> to:<br /><nobr><pre>'.zen_catalog_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL',false).'</pre></nobr></li>' . (defined('MODULE_PAYMENT_PAYPALSTD_STATUS') ? '' : '<li>... and click "install" above to enable PayPal Standard support... and "edit" to tell Zen Cart your PayPal settings.</li>') . '</ul><font color="green"><hr /><strong>Requirements:</strong></font><br /><hr />*<strong>PayPal Account</strong> (<a href="http://www.zen-cart.com/partners/paypal-std" target="_blank">click to setup/configure</a>)<br />*<strong>CURL with SSL</strong> is strongly recommended<br />*<strong>Port 80 (and port 443 if SSL is enabled)</strong> is used for <strong>*bidirectional*</strong> communication with the gateway, so must be open on your host\'s router/firewall.<br />*<strong>Settings</strong> within your PayPal account must be configured as described above.' );
 } else {
    define('MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION', '<strong>Credit Cards or PayPal</strong>');
  }
27 Jan 2014, 2:57 AM
#12
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Order Confirmation email address?

To report back, your solution worked well!!!:smile:
Changes propagated to the Confirmation e-mail.
Many thanks for time taken to provide in such details that any worm body can follow.

One little detail to address your comment:> FWIW, the PayPal Express Checkout payment method tends to be "more robust" (i.e. fewer lost transaction errors reported).

I read this statement in many threads. I still am with **Standard PayPal payment **module, because I am very bad with programming and understanding intricacies of this art.
So, any simple change for you is a big long project for us. It works for my store with this statistics:
We had close to 11,000 orders for all these years and we lost less than 10! By lost I mean Payment came but order did not. From this 10 we blame 3 for e-mail filter. We had payments from Canadian Essex province and e-mail filters deleted mail containing "s e x".
That about it. So, we do not want to fix at this time something that works for us.

27 Jan 2014, 2:17 PM
#13
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,100
Plugin Contributions:
56

Re: Order Confirmation email address?

I'm glad that the wording change worked for you!