How to disable the email order notification for administrator

To disable email order notification for administrator without disabling it for customer:
  1. Open the fn_cart.php file located in the core directory of your CS-Cart installation.
  2. 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']);
            }
  3. 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']);
            }
  4. 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']);
        }
  5. 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']);
        }
  6. Save the file.

Noticed an error in the article or it is not clear enough? Any suggestions to improve it? Please let us know by filling in the feedback form. Click here.