Forums / General Questions / Order confirmation emails to certain addresses

Order confirmation emails to certain addresses

Locked

Views: 1,540

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
6 Nov 2009, 4:01 PM
#1
silvito avatar

silvito

New Zenner

Join Date:
Feb 2007
Posts:
79
Plugin Contributions:
0

Order confirmation emails to certain addresses

Hello everyone,

is there a way for the order confiramtion email the admin recieves when an order was place to be email to diferent email address. For example my company is in the school picture business. We cater to both k-11 and 12 grade. Each have there own department. For the 12th graders we take there pictures at the studio which we currently have two. One at the north part of the city and another at the south part of the city. What i would like is if an order was place and the order pertains to the studio to the south can the order confimation be sent to them and vice versa if it was the north.

any help or suggestion would be greatful.

Thanks,
Silvio

7 Nov 2009, 12:24 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Order confirmation emails to certain addresses

You'll have to write your own custom code to replace the existing functionality in the send_order_email() method of the orders.php class based on your unique custom criteria.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jan 2010, 1:19 PM
#3
lunar1369 avatar

lunar1369

New Zenner

Join Date:
Oct 2009
Posts:
2
Plugin Contributions:
0

Re: Order confirmation emails to certain addresses

I had a similar situation where I needed email copies to goto different people depending on the customer. I put this email address in the "suburb" field in the main customer address. I use FEC orders so the code below is on line 1067 of includes/classes/order.php.

zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO . ',' . $this->customer['suburb'], 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);

The part in red was the only change.

26 May 2010, 4:57 PM
#4
valnoren avatar

valnoren

New Zenner

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

Re: Order confirmation emails to certain addresses

Hello Im in need of the exact same feature , however Im not clear on the solution you gave I need a certain group order to be emailed to a third party email address but I'm at a loss on where to begin.

26 May 2010, 5:18 PM
#5
valnoren avatar

valnoren

New Zenner

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

Re: Order confirmation emails to certain addresses

After studying it I see what you did but I was wondering if there was anyway for it to be an "if" statement , like "if" customer belongs to group "alpha" then email confirmation to (alpha email) does this make sense ?