Bitrix API

BasketComponentHelper

Table of Contents

Properties

$cacheRatio  : array<string|int, mixed>
$cacheRatioData  : array<string|int, mixed>

Methods

checkQuantityRatio()  : Result
clearFUserBasketPrice()  : mixed
clearFUserBasketQuantity()  : mixed
correctQuantityRatio()  : Result
existsFUserBasketPrice()  : bool
Returns true, if the fuser basket summary price has bedd already calculated.
existsFUserBasketQuantity()  : bool
Returns true, if the fuser basket summary quantity has already been calculated.
getFUserBasketPrice()  : int|float
getFUserBasketQuantity()  : int|float
getRatio()  : Result
onSaleBasketItemDeleted()  : EventResult
onSaleBasketItemEntitySaved()  : EventResult
setFUserBasketPrice()  : void
setFUserBasketQuantity()  : void
updateFUserBasket()  : void
updateFUserBasketPrice()  : void
updateFUserBasketQuantity()  : void

Properties

Methods

clearFUserBasketPrice()

public static clearFUserBasketPrice(mixed $fuserId[, null $siteId = null ]) : mixed
Parameters
$fuserId : mixed
$siteId : null = null

clearFUserBasketQuantity()

public static clearFUserBasketQuantity(mixed $fuserId[, null $siteId = null ]) : mixed
Parameters
$fuserId : mixed
$siteId : null = null

existsFUserBasketPrice()

Returns true, if the fuser basket summary price has bedd already calculated.

public static existsFUserBasketPrice(int|null $fuserId[, string|null $siteId = null ]) : bool
Parameters
$fuserId : int|null
$siteId : string|null = null
Return values
bool

existsFUserBasketQuantity()

Returns true, if the fuser basket summary quantity has already been calculated.

public static existsFUserBasketQuantity(int|null $fuserId[, string|null $siteId = null ]) : bool
Parameters
$fuserId : int|null
$siteId : string|null = null
Return values
bool

getFUserBasketPrice()

public static getFUserBasketPrice(null|int $fuserId[, string|null $siteId = null ]) : int|float
Parameters
$fuserId : null|int
$siteId : string|null = null
Return values
int|float

getFUserBasketQuantity()

public static getFUserBasketQuantity(null|int $fuserId[, string|null $siteId = null ]) : int|float
Parameters
$fuserId : null|int
$siteId : string|null = null
Return values
int|float

setFUserBasketPrice()

public static setFUserBasketPrice(int $fuserId, int|float $price[, string|null $siteId = null ]) : void
Parameters
$fuserId : int
$price : int|float
$siteId : string|null = null

setFUserBasketQuantity()

public static setFUserBasketQuantity(int $fuserId, int|float $quantity[, string|null $siteId = null ]) : void
Parameters
$fuserId : int
$quantity : int|float
$siteId : string|null = null

updateFUserBasket()

public static updateFUserBasket(int $fuserId[, string|null $siteId = null ]) : void
Parameters
$fuserId : int
$siteId : string|null = null

updateFUserBasketPrice()

public static updateFUserBasketPrice(int $fuserId[, string|null $siteId = null ][, array<string|int, mixed>|null $basketList = null ]) : void
Parameters
$fuserId : int
$siteId : string|null = null
$basketList : array<string|int, mixed>|null = null

updateFUserBasketQuantity()

public static updateFUserBasketQuantity(int $fuserId[, string|null $siteId = null ][, array<string|int, mixed>|null $basketList = null ]) : void
Parameters
$fuserId : int
$siteId : string|null = null
$basketList : array<string|int, mixed>|null = null

        
On this page

Search results