BasketService
Namespace
IO\Services
Type | Name | Description |
---|---|---|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods
public __construct($basketItemRepository, $checkout, $vatService, $customerService, $basketRepository, $vatInitService, $couponService, $webstoreConfigurationService)
BasketService constructor.
Type |
Name |
Description |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
public setTemplate($template)
Type |
Name |
Description |
|
public getBasketForTemplate()
public getBasket():Basket
Return the basket as an array
public getTotalVats():array
public getBasketQuantity()
public getBasketItems():array
List the basket items
public getBasketItemsForOrder():array
List the basket items for order
public getBasketItemsForTemplate()
public checkBasketItemsLang($template = "")
Type |
Name |
Description |
|
public getBasketItem($basketItemId, $appendVariation = true):array
Get a basket item
Type |
Name |
Description |
|
||
|
public addBasketItem($data):array
Add an item to the basket or update the basket
Type |
Name |
Description |
|
public updateBasketItem($basketItemId, $data):array
Update a basket item
Type |
Name |
Description |
|
||
|
public deleteBasketItem($basketItemId)
Delete an item from the basket
Type |
Name |
Description |
|
public findExistingOneByData($data):BasketItem
Check whether the item is already in the basket
Type |
Name |
Description |
|
public resetBasket()
public setBillingAddressId($billingAddressId)
Set the billing address id
Type |
Name |
Description |
|
public getBillingAddressId():int
Return the billing address id
public setDeliveryAddressId($deliveryAddressId)
Set the delivery address id
Type |
Name |
Description |
|
public getDeliveryAddressId():int
Return the delivery address id
public getMaxVatValue():float
Get the maximum vat value in basket.