Add a new cron task
// Cron task to process abandoned orders
[
'key' => 'process_abandoned_orders',
'task_type' => 'plugin',
'dir' => 'order',
'name' => Language::_('OrderPlugin.cron.process_abandoned_orders', true), // Process Abandoned Orders
'description' => Language::_('OrderPlugin.cron.process_abandoned_orders', true), // Send reminder emails, perform cancellations, and deactivate clients for abandoned orders
'type' => 'interval',
'type_value' => 5,
'enabled' => 1
],
The following tasks should be executed for orders in the pending status and associated transactions (active or pending) do not add up to the total amount due:
- Send reminder emails after the configured amount of time has passed (if enabled)
- Cancel orders after the configured amount of time has passed (if enabled)
- Deactivate clients with no other orders/services after an order is automatically canceled