Forums / Managing Customers and Orders / Changing Reply email to order confirmations

Changing Reply email to order confirmations

Locked

Views: 3,174

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
24 Jan 2010, 6:45 PM
#1
varnco avatar

varnco

New Zenner

Join Date:
Mar 2009
Posts:
16
Plugin Contributions:
0

Changing Reply email to order confirmations

I'm trying to figure out how to change the "from" email address on the order confirmations that are sent to admin.

This makes it easier, when i have to "reply" to an email.

I think I can change it in orders.php, in this area, if someone could help decipher the text, that would be great.

Can I replace the lower bold text with the upper bold text?

$html_msg['EMAIL_FIRST_NAME'] = $this->customer['firstname'];

$html_msg['EMAIL_LAST_NAME'] = $this->customer['lastname'];

//  $html_msg['EMAIL_TEXT_HEADER'] = EMAIL_TEXT_HEADER;

$html_msg['EXTRA_INFO'] = '';

$zco_notifier->notify('NOTIFY_ORDER_INVOICE_CONTENT_READY_TO_SEND', array('zf_insert_id' => $zf_insert_id, 'text_email' => $email_order, 'html_email' => $html_msg));

zen_mail($this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id, $email_order, STORE_NAME, EMAIL_FROM, $html_msg, 'checkout', $this->attachArray);



// 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'];



  if ($GLOBALS[$_SESSION['payment']]->auth_code || $GLOBALS[$_SESSION['payment']]->transaction_id) {

    $pmt_details = 'AuthCode: ' . $GLOBALS[$_SESSION['payment']]->auth_code . '  TransID: ' . $GLOBALS[$_SESSION['payment']]->transaction_id . "\n\n";

    $email_order = $pmt_details . $email_order;

    $html_msg['EMAIL_TEXT_HEADER'] = nl2br($pmt_details) . $html_msg['EMAIL_TEXT_HEADER'];

  }



  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', $this->attachArray);

}

$zco_notifier->notify('NOTIFY_ORDER_AFTER_SEND_ORDER_EMAIL');

}

}

?>

24 Jan 2010, 6:49 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing Reply email to order confirmations

I'm trying to figure out how to change the "from" email address on the order confirmations that are sent to admin.

This makes it easier, when i have to "reply" to an email.
Why would you be replying to a "copy" of an order confirmation??

Zen-Venom Get Bitten

25 Jan 2010, 2:08 AM
#3
varnco avatar

varnco

New Zenner

Join Date:
Mar 2009
Posts:
16
Plugin Contributions:
0

Re: Changing Reply email to order confirmations

It's an easy way to ask a customer about their order, since I mainly use an email application to manage/process orders.

25 Jan 2010, 6:19 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing Reply email to order confirmations

See if this might serve your requirments

admin > customer > orders > select order > enter comments > check notify/send to customer > submit

Zen-Venom Get Bitten

18 Sep 2010, 8:39 PM
#5
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Changing Reply email to order confirmations

Can I please pick up on this thread again?

I have 4 ZenCart websites and something was changed in the first 3 so the Reply To: on the admin email shows the customer's name and email address

In my newest website (1.3.9f), it shows the Reply to: as my email address (website owner) (back to default)

I've looked through all the thread and old emails from Dr Byte and others and cannot locate the code change to fix this 4th site.
This way, I just just click reply to send a reply back to the customer.

thanks

Jeff Michaels,
pres of Musical Creations Ltd.

18 Sep 2010, 8:42 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing Reply email to order confirmations

jeffmic:

I have 4 ZenCart websites and something was changed in the first 3 so the Reply To: on the admin email shows the customer's name and email address
Use a diff tool like winmerge and compare file sets looking for what was changed

Zen-Venom Get Bitten

18 Sep 2010, 8:44 PM
#7
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Changing Reply email to order confirmations

I tried that and was unsuccessful - sorry

Jeff Michaels,
pres of Musical Creations Ltd.

18 Sep 2010, 8:47 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing Reply email to order confirmations

I tried that and was unsuccessful
So you are saying you found no differences?

Zen-Venom Get Bitten

18 Sep 2010, 8:48 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,857
Plugin Contributions:
18

Re: Changing Reply email to order confirmations

You might want to use winmerge on a backup of the configuration table of the different sites.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Sep 2010, 8:51 PM
#10
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Changing Reply email to order confirmations

I found the file - it was not includes/classes/orders.php,
it was includes/functions/functions_email.php
that required the change

this is what it needs to show the updated reply on the admin email:

// set the reply-to address. If none set yet, then use Store's default email name/address.

  // If sending from contact-us or tell-a-friend page, or want the admin email to have From: as the customer, use the supplied info
  $email_reply_to_address = ($email_reply_to_address) ? $email_reply_to_address : (in_array($module, array('contact_us', 'tell_a_friend', 'checkout_extra')) ? $from_email_address : EMAIL_FROM);

$email_reply_to_name = ($email_reply_to_name) ? $email_reply_to_name : (in_array($module, array('contact_us', 'tell_a_friend', 'checkout_extra')) ? $from_email_name : STORE_NAME);
$mail->AddReplyTo($email_reply_to_address, $email_reply_to_name);

Jeff Michaels,
pres of Musical Creations Ltd.

18 Sep 2010, 9:13 PM
#11
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Changing Reply email to order confirmations

the specific additional code in those 2 sets of lines is to add:

, 'checkout_extra'

after each of the 'tell_a_friend'

Jeff Michaels,
pres of Musical Creations Ltd.