Skip to main content
deleted 1 characters in body
Source Link
David Thomas
  • 21.9k
  • 2
  • 33
  • 68

After the order is paid in flufull (or not checkout is complete if there is no payment required and I ever get that working) I need to do a bunch of processing to set up the product the user has just bought. Only once that is done can I say the order is complete and I thought this would do it

commerce_order_status_update($order, 'completed');

But it doesn't change the order status. They are always left as Pending.

How do I programmatically change an order status from pending to completed?

After the order is paid in flu (or not checkout is complete if there is no payment required and I ever get that working) I need to do a bunch of processing to set up the product the user has just bought. Only once that is done can I say the order is complete and I thought this would do it

commerce_order_status_update($order, 'completed');

But it doesn't change the order status. They are always left as Pending.

How do I programmatically change an order status from pending to completed?

After the order is paid in full (or not checkout is complete if there is no payment required and I ever get that working) I need to do a bunch of processing to set up the product the user has just bought. Only once that is done can I say the order is complete and I thought this would do it

commerce_order_status_update($order, 'completed');

But it doesn't change the order status. They are always left as Pending.

How do I programmatically change an order status from pending to completed?

Source Link
Craig
  • 171
  • 2
  • 13

commerce_order_status_update() doesn't update the order status

After the order is paid in flu (or not checkout is complete if there is no payment required and I ever get that working) I need to do a bunch of processing to set up the product the user has just bought. Only once that is done can I say the order is complete and I thought this would do it

commerce_order_status_update($order, 'completed');

But it doesn't change the order status. They are always left as Pending.

How do I programmatically change an order status from pending to completed?