Documentation

UpdateLocation

This class has been deprecated. It's recommended to use methods of class Bitrix\Sale\Location.

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.

Returned values

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

© «Bitrix24», 2001-2024
Up