Bitrix Site Manager

CSaleOrder::DeliverOrder

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

The method DeliverOrder modifies the value of the ALLOW_DELIVERY field. Besides, it sets the fields DATE_ALLOW_DELIVERY (date when the order shipment was allowed) and EMP_ALLOW_DELIVERY_ID (the ID of a user (web shop member) who sets this flag).

Parameters

ParameterDescription
IDThe order ID.
ValNew value of the order cancellation flag (Y/N).

Return Values

Returns the order ID on success, or false otherwise.

Example



<?
if (!CSaleOrder::DeliverOrder(23, "Y"))
   echo "Error updating order 23";
?>