# Basket

URL: https://chugunov.pro/api-bitrix/sale/basket/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс `\Bitrix\Sale\Basket`
Модуль: Sale.

Исходный файл: `source/sale/lib/basket.php:20`

## Константы (1)

- `BASKET_DELETE_LIMIT`

## Методы (64)

- [`clearCollection()`](https://chugunov.pro/api-bitrix/sale/basket/clearcollection/)
- [`clearStartField()`](https://chugunov.pro/api-bitrix/sale/basket/clearstartfield/)
- [`count()`](https://chugunov.pro/api-bitrix/sale/basket/count/) — Подсчитывает количество элементов объекта.
- [`static create()`](https://chugunov.pro/api-bitrix/sale/basket/create/)
- [`createItem()`](https://chugunov.pro/api-bitrix/sale/basket/createitem/)
- [`current()`](https://chugunov.pro/api-bitrix/sale/basket/current/) — Возвращает текущий элемент.
- [`static deleteNoDemand()`](https://chugunov.pro/api-bitrix/sale/basket/deletenodemand/)
- [`static deleteOld()`](https://chugunov.pro/api-bitrix/sale/basket/deleteold/)
- [`static deleteOldAgent()`](https://chugunov.pro/api-bitrix/sale/basket/deleteoldagent/)
- [`doFinalAction()`](https://chugunov.pro/api-bitrix/sale/basket/dofinalaction/)
- [`getBasePrice()`](https://chugunov.pro/api-bitrix/sale/basket/getbaseprice/) — Получение цены корзины без скидок.
- [`getBasket()`](https://chugunov.pro/api-bitrix/sale/basket/getbasket/)
- [`getBasketItems()`](https://chugunov.pro/api-bitrix/sale/basket/getbasketitems/)
- [`getContext()`](https://chugunov.pro/api-bitrix/sale/basket/getcontext/)
- [`getExistsItem()`](https://chugunov.pro/api-bitrix/sale/basket/getexistsitem/) (устаревший)
- [`getExistsItemByItem()`](https://chugunov.pro/api-bitrix/sale/basket/getexistsitembyitem/) (устаревший)
- [`getExistsItems()`](https://chugunov.pro/api-bitrix/sale/basket/getexistsitems/) — Получает все элементы корзины для нужных moduleId, productId и свойств.
- [`getFUserId()`](https://chugunov.pro/api-bitrix/sale/basket/getfuserid/) — Получение идентификатора покупателя.
- [`getIndexById()`](https://chugunov.pro/api-bitrix/sale/basket/getindexbyid/)
- [`getItemByBasketCode()`](https://chugunov.pro/api-bitrix/sale/basket/getitembybasketcode/)
- [`getItemById()`](https://chugunov.pro/api-bitrix/sale/basket/getitembyid/)
- [`getItemByIndex()`](https://chugunov.pro/api-bitrix/sale/basket/getitembyindex/)
- [`getItemByXmlId()`](https://chugunov.pro/api-bitrix/sale/basket/getitembyxmlid/)
- [`getIterator()`](https://chugunov.pro/api-bitrix/sale/basket/getiterator/)
- [`static getList()`](https://chugunov.pro/api-bitrix/sale/basket/getlist/)
- [`getListOfFormatText()`](https://chugunov.pro/api-bitrix/sale/basket/getlistofformattext/)
- [`getOrder()`](https://chugunov.pro/api-bitrix/sale/basket/getorder/) — Получение объекта заказа.
- [`getOrderableItems()`](https://chugunov.pro/api-bitrix/sale/basket/getorderableitems/)
- [`getOrderId()`](https://chugunov.pro/api-bitrix/sale/basket/getorderid/)
- [`getPrice()`](https://chugunov.pro/api-bitrix/sale/basket/getprice/) — Получение цены корзины со скидками и налогами.
- [`getQuantityList()`](https://chugunov.pro/api-bitrix/sale/basket/getquantitylist/) — Получение списка количества элементов в корзине.
- [`static getRegistryType()`](https://chugunov.pro/api-bitrix/sale/basket/getregistrytype/)
- [`getSiteId()`](https://chugunov.pro/api-bitrix/sale/basket/getsiteid/) — Получение идентификатора сайта.
- [`getVatRate()`](https://chugunov.pro/api-bitrix/sale/basket/getvatrate/) — Получение значения налоговой ставки корзины.
- [`getVatSum()`](https://chugunov.pro/api-bitrix/sale/basket/getvatsum/) — Получение значения налога корзины.
- [`getWeight()`](https://chugunov.pro/api-bitrix/sale/basket/getweight/) — Получение веса корзины.
- [`hasMeaningfulField()`](https://chugunov.pro/api-bitrix/sale/basket/hasmeaningfulfield/)
- [`isAnyItemAdded()`](https://chugunov.pro/api-bitrix/sale/basket/isanyitemadded/)
- [`isAnyItemDeleted()`](https://chugunov.pro/api-bitrix/sale/basket/isanyitemdeleted/)
- [`isChanged()`](https://chugunov.pro/api-bitrix/sale/basket/ischanged/)
- [`isClone()`](https://chugunov.pro/api-bitrix/sale/basket/isclone/)
- [`isEmpty()`](https://chugunov.pro/api-bitrix/sale/basket/isempty/) — Проверяет, пуста ли коллекция.
- [`isMathActionOnly()`](https://chugunov.pro/api-bitrix/sale/basket/ismathactiononly/)
- [`isSaveRunning()`](https://chugunov.pro/api-bitrix/sale/basket/issaverunning/)
- [`isStartField()`](https://chugunov.pro/api-bitrix/sale/basket/isstartfield/)
- [`key()`](https://chugunov.pro/api-bitrix/sale/basket/key/) — Возвращает ключ текущего элемента.
- [`loadFromArray()`](https://chugunov.pro/api-bitrix/sale/basket/loadfromarray/)
- [`static loadItemsForFUser()`](https://chugunov.pro/api-bitrix/sale/basket/loaditemsforfuser/)
- [`next()`](https://chugunov.pro/api-bitrix/sale/basket/next/) — Переходит к следующему элементу.
- [`offsetExists()`](https://chugunov.pro/api-bitrix/sale/basket/offsetexists/) — Существует ли смещение.
- [`offsetGet()`](https://chugunov.pro/api-bitrix/sale/basket/offsetget/) — Смещение для получения.
- [`offsetSet()`](https://chugunov.pro/api-bitrix/sale/basket/offsetset/) — Смещение для установки.
- [`offsetUnset()`](https://chugunov.pro/api-bitrix/sale/basket/offsetunset/) — Смещение для удаления.
- [`onItemModify()`](https://chugunov.pro/api-bitrix/sale/basket/onitemmodify/)
- [`refresh()`](https://chugunov.pro/api-bitrix/sale/basket/refresh/)
- [`refreshData()`](https://chugunov.pro/api-bitrix/sale/basket/refreshdata/) (устаревший)
- [`rewind()`](https://chugunov.pro/api-bitrix/sale/basket/rewind/) — Перематывает итератор на первый элемент.
- [`save()`](https://chugunov.pro/api-bitrix/sale/basket/save/) — Сохранение корзины.
- [`setFUserId()`](https://chugunov.pro/api-bitrix/sale/basket/setfuserid/) — Установка идентификатора покупателя для корзины.
- [`setMathActionOnly()`](https://chugunov.pro/api-bitrix/sale/basket/setmathactiononly/)
- [`setOrder()`](https://chugunov.pro/api-bitrix/sale/basket/setorder/) — Привязка корзины к сущности объекта заказа.
- [`toArray()`](https://chugunov.pro/api-bitrix/sale/basket/toarray/)
- [`valid()`](https://chugunov.pro/api-bitrix/sale/basket/valid/) — Проверяет, является ли текущая позиция допустимой.
- [`verify()`](https://chugunov.pro/api-bitrix/sale/basket/verify/)

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Sale-Basket.html
