Hi,
We use the website to also handle offline payments, such as cash and via PIN. We have a plugin that's supposed to take care of the order status of these orders, because otherwise the status will stay on waiting for payment.
This is the function, in the func.php file from the add-on:
function fn_quick_order_form_change_order_status(&$status_to, &$status_from, &$order_info, &$force_notification, &$order_statuses, &$place_order) { $payment_method_ids = array(22,23); if($status_to == "O" && $status_from == "N" && in_array($order_info['payment_id'], $payment_method_ids)) { $status_to = "C"; } }
And it's registered in the init.php file:
fn_register_hooks( 'change_order_status' );
Yet nothing happens. I've seen that in 4.6.2 the change_order hook has been changed a bit, but I don't know how to make it working again.
Thanks in advance.