Can I Get Email Notification For Incomplete Status Order

Sometimes we get orders that end up with incomplete status however the payment has processed OK. If I don't remember to regularly look in incomplete orders they often get missed and we upset a customer,

Can CScart be configured to send an email to the store admin when an incomplete order is created so it can be followed up and manually checked.

Thanks

PAul

Sometimes we get orders that end up with incomplete status however the payment has processed OK. If I don't remember to regularly look in incomplete orders they often get missed and we upset a customer,

Can CScart be configured to send an email to the store admin when an incomplete order is created so it can be followed up and manually checked.

Thanks

PAul

Some code modifications are required in this case.

1. Replace the following lines:

 if ((!empty($notified[$order_info['order_id']][$order_info['status']]) && $notified[$order_info['order_id']][$order_info['status']]) || $order_info['status'] == STATUS_INCOMPLETED_ORDER || $order_info['status'] == STATUS_PARENT_ORDER) {
        $send_order_notification = false;
    }

with these ones:

   if ($order_info['status'] == STATUS_INCOMPLETED_ORDER) {
	$notify_department = true;
    } elseif ((!empty($notified[$order_info['order_id']][$order_info['status']]) && $notified[$order_info['order_id']][$order_info['status']]) || $order_info['status'] == STATUS_PARENT_ORDER) {
        $send_order_notification = false;
    }

2. Add the following lines:

if ($order_info['status'] == STATUS_INCOMPLETED_ORDER) {
	$force_notification = array('C' => true, 'A' => true, 'V' => true);
    }

after these lines:

if (!is_array($force_notification)) {
        $force_notification = fn_get_notification_rules($force_notification, !$force_notification);
    }

3. Save the changes.

1 Like

Some code modifications are required in this case.

1. Replace the following lines:

 if ((!empty($notified[$order_info['order_id']][$order_info['status']]) && $notified[$order_info['order_id']][$order_info['status']]) || $order_info['status'] == STATUS_INCOMPLETED_ORDER || $order_info['status'] == STATUS_PARENT_ORDER) {
        $send_order_notification = false;
    }

with these ones:

   if ($order_info['status'] == STATUS_INCOMPLETED_ORDER) {
	$notify_department = true;
    } elseif ((!empty($notified[$order_info['order_id']][$order_info['status']]) && $notified[$order_info['order_id']][$order_info['status']]) || $order_info['status'] == STATUS_PARENT_ORDER) {
        $send_order_notification = false;
    }

2. Add the following lines:

if ($order_info['status'] == STATUS_INCOMPLETED_ORDER) {
	$force_notification = array('C' => true, 'A' => true, 'V' => true);
    }

after these lines:

if (!is_array($force_notification)) {
        $force_notification = fn_get_notification_rules($force_notification, !$force_notification);
    }

3. Save the changes.

In which files guys

app/functions/fn.cart.php

Hi

you can use our new addon Notification of Incompleted Orders

More info here https://www.cscart.biz/notification-of-incomplete-orders.html