Documentation

CSaleBasket

The CSaleBasket class is used for handling the shopping basket (shopping cart).

Methods

MethodDescription
Update Replaces parameters of the specified product with the new ones.
GetByID Returns an array of parameters of the shopping basket record identified by the ID.
GetList Returns a set of the basket records. The set returned is filtered by arFilter, sorted by by in the direction order.
GetPropsList Returns a set of basket properties. The property set returned is filtered by arFilter, sorted by by in the direction order.
UpdatePrice Updates the basket item using the callback function.
OrderBasket Attaches product items from the basket to the specified order. This method is called at the time of ordering the basket products.
Add Adds a product item to the basket unless it is already added, or updates the product properties (increases its quantity) is this product has already been added to the basket.
© «Bitrix24», 2001-2023
Up