Documentation

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.

Returned 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";
?>
© «Bitrix24», 2001-2024