Class Mage_CatalogInventory_Model_Stock_Item
Catalog Inventory Stock Model
- Varien_Object
-
Mage_Core_Model_Abstract
-
Mage_CatalogInventory_Model_Stock_Item
Package: Mage\CatalogInventory
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/CatalogInventory/Model/Stock/Item.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/CatalogInventory/Model/Stock/Item.php
protected
|
|
protected
|
|
public
integer
|
|
public
integer
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
integer
|
|
public
|
|
public
float
|
|
public
integer
|
|
public
|
|
public
float|null
|
#
getMinSaleQty( )
Retrieve Minimum Qty Allowed in Shopping Cart or NULL when there is no limitation |
public
float
|
|
public
float
|
|
public
boolean
|
|
public
float|false
|
|
public
integer
|
|
public
integer
|
|
public
boolean
|
|
public
boolean
|
|
public
integer|float
|
#
suggestQty( integer|float $qty )
Returns suggested qty that satisfies qty increments and minQty/maxQty/minSaleQty/maxSaleQty conditions or original qty if such value does not exist |
public
Varien_Object
|
#
checkQuoteItemQty( mixed $qty, mixed $summaryQty, mixed $origQty = 0 )
Checking quote item quantity |
public
Varien_Object
|
|
public
|
#
addCatalogInventoryToProductCollection( Mage_Catalog_Model_Entity_Product_Collection $productCollection )
Add join for catalog in stock field to product collection |
protected
|
#
_addQuoteItemError(
Add error to Quote Item |
protected
|
|
public
boolean
|
#
verifyStock( float|null $qty = null )
Chceck if item should be in stock or out of stock based on $qty param of existing item qty |
public
boolean
|
|
protected
|
|
public
boolean|integer
|
|
public
|
|
public
|
|
public
float
|
|
public
|
|
public
|
#
setProcessIndexEvents( boolean $process = true )
Set whether index events should be processed immediately |
string |
XML_PATH_GLOBAL
|
'cataloginventory/options/' |
|
string |
XML_PATH_CAN_SUBTRACT
|
'cataloginventory/options/can_subtract' |
|
string |
XML_PATH_CAN_BACK_IN_STOCK
|
'cataloginventory/options/can_back_in_stock' |
|
string |
XML_PATH_ITEM
|
'cataloginventory/item_options/' |
|
string |
XML_PATH_MIN_QTY
|
'cataloginventory/item_options/min_qty' |
|
string |
XML_PATH_MIN_SALE_QTY
|
'cataloginventory/item_options/min_sale_qty' |
|
string |
XML_PATH_MAX_SALE_QTY
|
'cataloginventory/item_options/max_sale_qty' |
|
string |
XML_PATH_BACKORDERS
|
'cataloginventory/item_options/backorders' |
|
string |
XML_PATH_NOTIFY_STOCK_QTY
|
'cataloginventory/item_options/notify_stock_qty' |
|
string |
XML_PATH_MANAGE_STOCK
|
'cataloginventory/item_options/manage_stock' |
|
string |
XML_PATH_ENABLE_QTY_INCREMENTS
|
'cataloginventory/item_options/enable_qty_increments' |
|
string |
XML_PATH_QTY_INCREMENTS
|
'cataloginventory/item_options/qty_increments' |
|
string |
ENTITY
|
'cataloginventory_stock_item' |
private
array
|
$_minSaleQtyCache | array() |
|
protected
float|false
|
$_qtyIncrements |
|
|
protected
string
|
$_eventPrefix | 'cataloginventory_stock_item' |
#
Prefix of model events names |
protected
string
|
$_eventObject | 'item' |
#
Parameter name in event |
protected
|
$_productInstance | null |
#
Associated product instance |
protected
integer|null
|
$_customerGroupId |
|
#
Customer group id |
protected
boolean
|
$_processIndexEvents | true |
#
Whether index events should be processed immediately |
$_cacheTag,
$_dataSaveAllowed,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|