0

i try to update status like this

function module_order($op, &$arg1, $arg2) {
  switch ($op) {
      case 'update':
      $money = 'Cash';
      if (isset($arg1->custompane) && $arg1->custompane == $money) $arg1->order_status = 'completed';
      break;
    }
}

It does not work.

What do I do wrong?

1

Use conditional actions to achieve this. Conditional actions are part of Ubercart.

0

Indeed order_save() should be used after modifying the order.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.