- Open the fn_cart.php file located in the core directory of your CS-Cart installation.
- Find the following part of code there:
// Notify customer
fn_send_mail($order_info['email'], $settings['Company']['company_orders_department'], 'orders/order_notification_subj.tpl', 'orders/order_notification.tpl', '', $order_info['lang_code']);
// Notify administrator (only if the changes performed from customer area)
if (AREA == 'C') {
// Translate descriptions to admin language
fn_translate_products($order_info['items'], 'product', $settings['Appearance']['admin_default_language']);
$smarty_mail->assign('order_status', fn_get_status_data($status_to, STATUSES_ORDER, $settings['Appearance']['admin_default_language']));
fn_send_mail($settings['Company']['company_orders_department'], $order_info['email'], 'orders/order_notification_subj.tpl', 'orders/order_notification.tpl', '', $settings['Appearance']['admin_default_language']);
}
- Replace it with the following part of code:
// Notify customer
fn_send_mail($order_info['email'], $settings['Company']['company_orders_department'], 'orders/order_notification_subj.tpl', 'orders/order_notification.tpl', '', $order_info['lang_code']);
// Notify administrator (only if the changes performed from customer area)
if (AREA == 'C') {
// Translate descriptions to admin language
fn_translate_products($order_info['items'], 'product', $settings['Appearance']['admin_default_language']);
$smarty_mail->assign('order_status', fn_get_status_data($status_to, STATUSES_ORDER, $settings['Appearance']['admin_default_language']));
//fn_send_mail($settings['Company']['company_orders_department'], $order_info['email'], 'orders/order_notification_subj.tpl', 'orders/order_notification.tpl', '', $settings['Appearance']['admin_default_language']);
}
- Then find the following part of code there:
if (!defined('ORDER_NOTIFICATION_SENT') && $notify_user == 'Y') {
// [Send email notification]
$smarty_mail->assign_by_ref('order_info', $order_info);
// Send notification to customer
$smarty_mail->assign('order_status', fn_get_status_data($order_info['status'], STATUSES_ORDER, $order_info['lang_code']));
fn_send_mail($order_info['email'], $settings['Company']['company_orders_department'], 'orders/order_notification_subj.tpl', 'orders/order_notification.tpl', '', $order_info['lang_code']);
// Translate descriptions to admin language
fn_translate_products($order_info['items'], 'product', $settings['Appearance']['admin_default_language']);
// Send notification to order department
$smarty_mail->assign('order_status', fn_get_status_data($order_info['status'], STATUSES_ORDER, $settings['Appearance']['admin_default_language']));
fn_send_mail($settings['Company']['company_orders_department'], $order_info['email'], 'orders/order_notification_subj.tpl', 'orders/order_notification.tpl', '', $settings['Appearance']['admin_default_language']);
}
- Replace it with the following part of code:
if (!defined('ORDER_NOTIFICATION_SENT') && $notify_user == 'Y') {
// [Send email notification]
$smarty_mail->assign_by_ref('order_info', $order_info);
// Send notification to customer
$smarty_mail->assign('order_status', fn_get_status_data($order_info['status'], STATUSES_ORDER, $order_info['lang_code']));
fn_send_mail($order_info['email'], $settings['Company']['company_orders_department'], 'orders/order_notification_subj.tpl', 'orders/order_notification.tpl', '', $order_info['lang_code']);
// Translate descriptions to admin language
fn_translate_products($order_info['items'], 'product', $settings['Appearance']['admin_default_language']);
// Send notification to order department
$smarty_mail->assign('order_status', fn_get_status_data($order_info['status'], STATUSES_ORDER, $settings['Appearance']['admin_default_language']));
//fn_send_mail($settings['Company']['company_orders_department'], $order_info['email'], 'orders/order_notification_subj.tpl', 'orders/order_notification.tpl', '', $settings['Appearance']['admin_default_language']);
}
- Save the file.