Send order details / confirmation to admin too

Guido

Avatar: Guido

2012-07-12 10:05

Hi,

I have noticed the function send order details to buyer by e-mail.

Is it possible to adjust file orders_step-3 (QuickCart v5.0) so admin will receive a confirmation too?
Or do I have to adjust more files to achieve this?

Admin only needs a confirmation by e-mail, displaying order details is not necessary.

Guido

» Quick.Cart v5.x

boboo

Avatar: boboo

2012-07-12 11:41

Normally the admin gets the email every time.
The customer gets this only if it is checked in config.

qc-plugins.kimla.de

Guido

Avatar: Guido

2012-07-12 12:34

Hi,

I cannot find any code about that in file orders_step-3

Only code about confirmation to buyer.

I'm using v5.0

boboo

Avatar: boboo

2012-07-12 12:45

both emails use the same template BLOCK.
sending emails is triggered in /core/orders.php -> function sendEmailWithOrderDetails

there you can see:
sendEmail($aSend,null,$GLOBALS['config']['orders_email']);
this above is the email to admin.
And then:
if($bSendToCustomer===true)
sendEmail($aSend,null,$aData['sEmail']);
this is the email to customer (if chosen in settings).

As you can see, the $aSend[mailContent] is created on the ORDER_EMAIL_BODY part of the template and is used by sending to both (admin + customer).
If you want another email "looking" for the admin, so create a similar block (e.g. ORDER_EMAIL_BODY_ADMIN) and fill it eith needed variables.
Then use this block by creating $aSend[sMailContent] and additionaly by calling the email to customer overwrite it with the old block.

qc-plugins.kimla.de

Guido

Avatar: Guido

2012-07-12 13:22

Aha, so the same e-mail (same layout) is send to both customer and admin.

Thanks!

Guido

Back to top
about us | contact