Please how modify mail about order for customer?

Lukas

Avatar: Lukas

2014-03-10 16:06

Please I need blank lines between all products in e-mail. I made picture for better info: http://iphonekafe.cz/pom/quick_cart_problem.jpg
Please help me, very thank for reply.
.
Here is that section in orders.php:

$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.( isset( $_SESSION['oneDiscount'] ) ? "\n-------\n".$lang['Info_discount'].''.$config['discount_percent'].'%' null )."\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 ).'Zaokrouhleno: '.$this->aOrders[$iOrder]['zaokrouhleno'].' '.$config['currency_symbol']."\n".$lang['Summary_cost'].': '.$this->aOrders[$iOrder]['sOrderSummary'].' '.$config['currency_symbol']."\n------------------------\n".$lang['Order_customer_email_foot'].$aData[iOrder]);
    
$aSend['sTopic'] = $lang['Order_customer_info_title'].$iOrder;
    
$aSend['sSender'] = $GLOBALS['config']['orders_email'];

    if( 
$bSendToCustomer === true )
      
sendEmail$aSendnull$aData['sEmail'] );
    if( 
$GLOBALS['config']['order_details_from_customer'] === true )
      
$aSend['sSender'] = $aData['sEmail'];
    
sendEmail$aSendnull$GLOBALS['config']['orders_email'] );



Lukas

» Quick.Cart v6.x

Lukas

selekcjoner

Avatar: selekcjoner

2014-03-10 16:55

Edit file: core/orders.php:
Find code:

$content .= "\n 


Replace with:

$content .= "\n\n 

simlution.org

boboo

Avatar: boboo

2014-03-10 16:57

The format of the productsList in the email order confirmation is determined in core/orders.php in the function: listProducts(mData, bPrint)

if( isset( $bPrint ) ){
 
$content .= "\n".'- '.$aData['sName'].' - '.$lang['Price'].': '.$aData['sPrice'].' '.$GLOBALS['config']['currency_symbol'].', '.$lang['Quantity'].': '.$aData['iQuantity'].', '.$lang['Summary'].': '.$aData['sSummary'].' '.$GLOBALS['config']['currency_symbol'];
}


Here you can add more "new line" characters.

boboo :-)

Lukas

Avatar: Lukas

2014-03-11 14:03

selekcjoner & boboo: Super! Thank You so much!!!

Lukas

Back to top
about us | contact