Add
int CSaleLocationGroup::Add( array arFields );
The method Add adds a new group of locations.
Parameters
Parameter | Description |
---|---|
arFields | Associated array whose keys are the location group parameter names, and
the values are the parameter values. The following keys are possible:
|
Returned values
Returns the ID of the new group on success or false otherwise.
Example
<? $arFields = array( "SORT" => 150, "LOCATION_ID" => array(12, 34, 35, 36, 37), "LANG" => array( array("LID" => "en", "NAME" => "Group 1") array("LID" => "fr", "NAME" => "Groupe 1"), ) ); $ID = CSaleLocationGroup::Add($arFields); if (IntVal($ID)<=0) echo "Error adding a group"; ?>
© «Bitrix24», 2001-2024