Checkout Rules not Triggering
I have integrated worldpay module in my drupal commerce site. But i am getting read timed out error. After debugging i found out that there is some problem in
commerce_payment_redirect_pane_next_page($order) function which is taking too long, then i moved to this function which is further calling commerce_checkout_complete($order) and it is calling rules_invoke_all('commerce_checkout_complete', $order). What i thinks is that there is some problem in invoking the rules.
Please help me out in finding the solutions and fixing my problem.
I have tried debugging the
I have tried debugging the code again.
i have tried executing below lines of code.
$order_id = [Any Order Id];
$order = commerce_order_load($order_id);
i am getting empty array.