Bitrix Site Manager

CSaleLocation::UpdateLocation

int
CSaleLocation::UpdateLocation(
  int ID,
  array arFields
);

The method UpdateLocation replaces the location parameters with the new ones from the supplied array.

Parameters

ParameterDescription
ID The location ID.
arFieldsAssosiated array of the location parameters. The following keys are possible:
  • SORT - sort weight;
  • COUNTRY_ID - the country ID;
  • CITY_ID - the city ID. If the proposed city does not currently exist, this key must be set to null, and the CITY key should be specified instead.

Return Values

Returns the modified location ID on success, or false otherwise.