Bitrix Site Manager

CSaleOrder::CommentsOrder

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

The method CommentsOrder sets a new value (text) of the order COMMENTS field.

Parameters

ParameterDescription
ID The order ID.
Val The new comment text.

Return Values

Returns the order ID on success, or false otherwise.

Example



<?
if (!CSaleOrder::CommentsOrder(12, "Do not pay until paid!"))
   echo "Error setting the order comment";
?>