Documentation

CSaleLocation

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

The CSaleLocation class is used to create, delete and modify delivery locations, as well as to obtain information on the existing locations.

Methods

MethodDescription
GetCountryByID Returns language-independent parameters of a country.
GetCountryLangByID Returns the language dependent parameters of a country.
GetCityByID Returns the language-independent parameters of a city.
GetCityLangByID Returns language dependent parameters of a city.
UpdateCountry Replaces the country parameters with the new ones from the supplied array.
DeleteCountry Deletes the country. All location bound to this country remain untouched.
UpdateCity Replaces the city parameters with the new ones from the supplied array.
DeleteCity Deletes the existing city. Location to which this city is bound is not changed.
UpdateLocation Replaces the location parameters with the new ones from the supplied array.
Add Adds a new location, optionally including the country and the city.
Update Replaces the location parameters with the new ones from the supplied array.
Delete Deletes the existing location.
GetList Returns a sorted and filtered list of locations.
GetByID Returns parameters of a specified location.
GetCountryList Returns a filtered and sorted list of countries.
AddCountry Adds a new country.
AddCity Adds a new city.
AddLocation Adds a new location given the existing city and country ID's.
DeleteAll Deletes all locations from the database.

© «Bitrix24», 2001-2024
Up