메소드 |
설명 |
|
add ( mixed $key, mixed $value ) : void |
Add $value items to position with $key specified |
|
addDiscountPrice ( float $price ) : void |
Add $price to cart-wide discount sum |
|
getCost ( boolean $withDiscount = true ) : float |
Returns total price for all items in the shopping cart. |
|
getCouponManager ( ) : CouponManager |
|
|
getItemsCount ( ) : integer |
Returns count of items in shopping cart |
|
getPositions ( ) : array |
Returns array all positions |
|
init ( ) |
|
|
isEmpty ( ) : boolean |
Returns if cart is empty |
|
put ( IECartPosition $position, $quantity = 1 ) |
Add item to the shopping cart
If the position was previously added to the cart,
then information about it is updated, and count increases by $quantity |
|
remove ( mixed $key ) : mixed | void |
Removes position from the shopping cart of key |
|
restoreFromSession ( ) |
Restores the shopping cart from the session |
|
setDiscountPrice ( float $price ) : void |
Set cart-wide discount sum |
|
update ( IECartPosition $position, integer $quantity ) |
Updates the position in the shopping cart
If position was previously added, then it will be updated in shopping cart,
if position was not previously in the cart, it will be added there. |
|