sending another email

txa

No avatar

2008-08-11 10:22

Hello

I have a quistion;

If an order is placed then the Information about that new order will be sent to e-mail (X). e-mail (X) can be changed in the admin function.
Now i like to add the next option in QC that if an order is placed the information will be sent to e-mail (X) AND to another email account (Y) what is not visible in the admin panel so it can not be changed there!

How can I solves this question

» Quick.Cart v3.x

taxa

Makaron

Avatar: Makaron

2008-08-11 13:20

Look at function sendEmailWithOrderDetails( $sFile, $iOrder ) in core/orders.php. You have instructions which sending order to email which is visible in admin panel:

    $aSend['sMailContent'] = ereg_replace'\|n\|'"\n"$oTpl->tbHtml$sFile'ORDER_EMAIL_BODY' ) );
    
$aSend['sTopic'] = $oTpl->tbHtml$sFile'ORDER_EMAIL_TITLE' );
    
$aSend['sSender']= $GLOBALS['config']['orders_email'];
    
sendEmail$aSendnull$GLOBALS['config']['orders_email'] );


You can just copy these instruction below and just change this value:
$GLOBALS['config']['orders_email']
for:
$GLOBALS['config']['orders_email2']
After that You should declare this variable in file config/lang_en.php (this option won't be visible in admin panel, You could change it only in this file)

txa

No avatar

2008-08-12 09:37

It´s working, Thanks txa

taxa

Back to top
about us | contact