Bitrix Site Manager

CSaleOrder::StatusOrder

int
CSaleOrder::StatusOrder(
  int ID,
  string Val
);

The method StatusOrder changes the value of the STATUS_ID (order status). Besides, it sets the fields DATE_STATUS (date when the order was paid) and EMP_STATUS_ID (the ID of a user (web shop member) who sets this flag).

Parameters

ParameterDescription
ID The order ID.
Val New order status code.

Return Values

Returns the order ID on success, or false otherwise.

Example



<?
if (!CSaleOrder::StatusOrder($ID, "F"))
   echo "Error updating order status";
?>