How do I change order of completion rules in checkout? How do I change the order in which completion rules fire?
There is a default Completition reaction rule. I wanted to add a second rule which executes some custom PHP but it's never executed.
I see no way to change the weight as in other rules. I also tried adding what I need as an action in that default rule, but it also doesn't seem to fire.
This is the reaction rule that fires on order completion.
{ &quot;rules_completion&quot; : {
    &quot;LABEL&quot; : &quot;completion&quot;,
    &quot;PLUGIN&quot; : &quot;reaction rule&quot;,
    &quot;REQUIRES&quot; : [ &quot;php&quot;, &quot;rules&quot;, &quot;commerce_checkout&quot; ],
    &quot;ON&quot; : [ &quot;commerce_checkout_complete&quot; ],
    &quot;DO&quot; : [
      { &quot;php_eval&quot; : { &quot;code&quot; : &quot;jch_send_quote()&quot; } },
      { &quot;commerce_checkout_complete&quot; : { &quot;commerce_order&quot; : [ &quot;commerce_order&quot; ] } }
    ]
  }

This is the code for jch_send_quote() which doesn't seem to fire.
function jch_send_quote(){ 
    global $user;
    watchdog('dev', 'jch_send_quote running here');
    drupal_set_message($user-&gt;uid);
        die('jch_send_quote running here')
}

What am I missing?
You should be able to edit the rule and set it's weight:



Screenshot, showing reaction rule with weight of "2"

Lastly, your rule should still fire, even with a different weight. If it's not firing, it's probably an issue with that rule itself.