Class Mage_Checkout_Model_Cart
Shopping cart model
- Varien_Object
-
Mage_Checkout_Model_Cart implements Mage_Checkout_Model_Cart_Interface
Package: Mage\Checkout
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Checkout/Model/Cart.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Checkout/Model/Cart.php
protected
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
#
addOrderItem(
Convert order item to quote item |
protected
|
|
protected
Varien_Object
|
|
public
|
#
addProduct( integer|
Add product to shopping cart (quote) |
public
|
|
public
array
|
#
suggestItemsQty( array $data )
Returns suggested quantities for items. Can be used to automatically fix user entered quantities before updating cart so that cart contains valid qty values |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer|float
|
|
public
integer
|
|
public
integer|float
|
|
public
|
#
updateItem( integer $itemId, integer|array|Varien_Object $requestInfo = null, null|array|Varien_Object $updatingParams = null )
Update item in shopping cart (quote) $requestInfo - either qty (int) or buyRequest in form of array or Varien_Object $updatingParams - information on how to perform update, passed to Quote->updateItem() method |
protected
integer|null
|
$_summaryQty |
|
#
Shopping cart items summary quantity(s) |
protected
array|null
|
$_productIds |
|
#
List of product ids in shopping cart |