2014-08-29 15:55
Hello there, How can I do to display a logo in the email to get the customer when ordered. In the core / order.php file ,in the save order function I think. But how to call the image?
public function sendEmailWithOrderDetails ( $iOrder , $bSendToCustomer = null ){ global $lang , $config ; I CALL THE DIR FILES HERE ? AND HOW $aData = $this -> throwOrder ( $iOrder ); $sProducts = $this -> listProducts ( $iOrder , true ); $aData [ 'sOrderSummary' ] = $this -> aOrders [ $iOrder ][ 'sOrderSummary' ]; $aSend [ 'sMailContent' ] = preg_replace ( '/\|n\|/' , "\n" , $lang [ 'Order_customer_email_head' ]. "\n------------------------\n" . $lang [ 'Order_customer_personal' ]. "\n------------------------\n" . $aData [ 'sFirstName' ]. ' ' . $aData [ 'sLastName' ].( isset( $aData [ 'sCompanyName' ] ) ? "\n" . $aData [ 'sCompanyName' ] : null ). "\n" . $aData [ 'sStreet' ]. "\n" . $aData [ 'sZipCode' ]. ' ' . $aData [ 'sCity' ]. "\n" . $aData [ 'sPhone' ]. "\n" . $aData [ 'sEmail' ].( isset( $aData [ 'sComment' ] ) ? "\n\n" . $lang [ 'Comment' ]. ': ' . $aData [ 'sComment' ] : null ). "\n------------------------\n" . $lang [ 'Order_customer_products' ]. "\n------------------------" . $sProducts . "\n------------------------\n" .( isset( $aData [ 'iShipping' ] ) ? $lang [ 'Order_customer_shipping' ]. "\n------------------------\n" . $aData [ 'mShipping' ]. ' (' . $aData [ 'mPayment' ]. ') = ' . $this -> aOrders [ $iOrder ][ 'sPaymentShippingPrice' ]. ' ' . $config [ 'currency_symbol' ]. "\n\n" : null ). $lang [ 'Summary_cost' ]. ': ' . $this -> aOrders [ $iOrder ][ 'sOrderSummary' ]. ' ' . $config [ 'currency_symbol' ]. "\n------------------------\n" . $lang [ 'Order_customer_email_foot' ] ) I PUT THE IMAGE HERE AND HOW ? ; $aSend [ 'sTopic' ] = $lang [ 'Order_customer_info_title' ]. $iOrder ; $aSend [ 'sSender' ] = $GLOBALS [ 'config' ][ 'orders_email' ]; if( $bSendToCustomer === true ) sendEmail ( $aSend , null , $aData [ 'sEmail' ] ); if( $GLOBALS [ 'config' ][ 'order_details_from_customer' ] === true ) $aSend [ 'sSender' ] = $aData [ 'sEmail' ]; sendEmail ( $aSend , null , $GLOBALS [ 'config' ][ 'orders_email' ] );
Thank you in advance
» Quick.Cart v6.x 2014-08-29 15:59
I said that I had stored my image in the folder /files. Soon
2014-08-31 19:34
Hello , I think we should also make a change in the common.php file in the sendmail function .
if( @ mail ( $sTargetEmail , '=?UTF-8?B?' . base64_encode ( $sTopic ). '?=' , $sMailContent , 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/plain; charset=UTF-8' . "\r\n" . 'From: ' . $sSender ) ){
Perhaps replace Content-type: text/plain by Content-type:text/html. I tried, but then the sendemail function no longer works. Thank you for your help Dominique
2014-08-31 19:38
I read on some forums that the address of the image must be relative as: <img src=http:mysite.com/'my image'/>
2014-09-03 18:37
Hello I tried to adapt to QC6 the information in this post but it does not work. http://opensolution.org/forum/?iTopic=5422 I think when you write text / html or multipart instead of plain, mail is not sent. It would be nice if you could answer the post that are not written in Polish. It feels a little left out. See you soon. Dominique.
2014-09-10 13:23
hello, I hope not to have hurt someone . It's just because the forum is not really living for some time and it seems to me that the questions are sorted. Otherwise no one to put me on the right way? Soon