Documentation

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.

Returned values

Returns the order ID on success, or false otherwise.

Example


<?
if (!CSaleOrder::StatusOrder($ID, "F"))
   echo "Error updating order status";
?>
© «Bitrix24», 2001-2024
Up