Sending e-mail to admin

poldark77

No avatar

2009-02-12 00:21

I know in versions 3.x it is possible to set e-mail with order details sent to admin. I use version 2.1. In administration panel I can choose "yes" send order to administrator, but the administrator doesn't receive any e-mail with the order's details. Is it me who I went wrong with anything or is it version 2.1 whick doesn't allow to send e-mail to admin? Is it possible to have this also in version 2.1 or have I to switch to version 3.x? Switch would not be a cheap solution, because my site is completed, with many products and many hours of work and the client I did it for is very satisfied of it and wouldn't like to change. Thank you

» Quick.Cart v2.x

poldark77

No avatar

2009-02-12 02:33

I found this topic:

http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=3757

Treewood kindly suggested to do this:

"edit file: plugins/sendOrderToClient/actions_client.php and find this:
@mail( $sTo, $sTitle, ereg_replace( '\|n\|', "\n", $sEmailContent ), 'FROM: '.$config['email'] );

after add email:
@mail( $config['email'], $sTitle, ereg_replace( '\|n\|', "\n", $sEmailContent ), 'FROM: '.$config['email'] ); "

but my actions_client.php is empty, it has only these three lines of code:

<?php

?>

Can someone paste here the entire code of actions_client.php, please? Thank you

great software, great community!

poldark77

No avatar

2009-02-13 02:40

I downloaded all versions of QC 3.x, I searched for file actions_client.php but there is not. File actions_client.php exist in QC versions 1.4, 2.1 and 2.2 but it doesn't exist in version 3.2 and 3.3.
I suppose the file Treewood suggested to edit has another name in versions 3.x. Which is that file? So I can copy it and paste in the tree of my version 2.1, edit it like Treewood said and finally I will be able to see e-mail sent to administrator, after each order done.
Thanx

great software, great community!

tiux

No avatar

2009-05-01 09:33

maybe this will help...:

admin.php

<?php
if( $p == 'ordersDelivery' && isset( $_SESSION['iOrderSession_'.LANGUAGE] ) && is_numeric( $_SESSION['iOrderSession_'.LANGUAGE] ) ){

if( !function_exists( 'throwOrdersIdTemp' ) ){
require_once DIR_CORE.'orders-'.$config['db_type'].'.php';
require_once DIR_CORE.'orders.php';

require_once DIR_CORE.'couriers-'.$config['db_type'].'.php';
require_once DIR_CORE.'couriers.php';
}

if( isset( $_POST['sOption'] ) && $_POST['sOption'] == 'send' && checkOrderFields( $_POST ) ){
$iOrder = $_SESSION['iOrderSession_'.LANGUAGE];
$sTo = $_POST['sEmail'];
$sTemplate = $config['language'].'_sendOrderToClient.tpl';
$sTitle = $tpl->tbHtml( $sTemplate, 'EMAIL_TITLE' );
$sEmailContent = $tpl->tbHtml( $sTemplate, 'EMAIL_HEAD' );
$sEmailContent .= listBasket( $iOrder, $sTemplate );

if( !empty( $_POST['iCourier'] ) ){
$aCourier = explode( '|', $_POST['iCourier'] );
$aCourier = throwCourier( $aCourier[0] );
$fSummary = tPrice( $aCourier['fPrice'] + $aList['fSummary'] );
$sEmailContent .= $tpl->tbHtml( $sTemplate, 'EMAIL_FOOT' );
}

@mail( $config['email'], $sTo, $sTitle, ereg_replace( '\|n\|', "\n", $sEmailContent ), 'FROM: '.$config['email']."\r\nContent-Type: text/plain; charset=".$config['charset']."\r\n" );
}
}
?>



http://opensolution.org/download,en,,18.html?sFile=Quick.Cart/plugins/archive/sendOrderToClient_v0.4.zip

dvs-one

No avatar

2009-05-06 05:15

The function to send email to admin doesn't work in vesrion 3..x either. What is the fix??

Thanks much

Back to top
about us | contact