Class Mage_Sales_Model_Quote_Item_Abstract
Quote item abstract model
Price attributes: - price - initial item price, declared during product association - original_price - product price before any calculations - calculation_price - prices for item totals calculation - custom_price - new price that can be declared by user and recalculated during calculation process - original_custom_price - original defined value of custom price without any convertion
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_Sales_Model_Quote_Item_Abstract implements Mage_Catalog_Model_Product_Configuration_Item_Interface
Package: Mage\Sales
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/Sales/Model/Quote/Item/Abstract.php
abstract public
|
|
public
|
|
public
null|Varien_Object
|
#
getFileDownloadParams( )
Returns special download params (if needed) for custom option with type = 'file' Needed to implement Mage_Catalog_Model_Product_Configuration_Item_Interface. Return null, as quote item needs no additional configuration. |
protected
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
array|string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer|float
|
|
public
integer|float
|
|
public
|
|
public
float
|
#
getCalculationPrice( )
Get item price used for quote calculation process. This method get custom price (if it is defined) or original product final price |
public
float
|
#
getCalculationPriceOriginal( )
Get item price used for quote calculation process. This method get original custom price applied before tax calculation |
public
float
|
|
public
float
|
#
getBaseCalculationPriceOriginal( )
Get original calculation price used for quote calculation in base currency. |
public
boolean
|
|
public
integer
|
|
public
float
|
#
getOriginalPrice( )
Get original price (retrieved from product) for item. Original price value is in quote selected currency |
public
|
#
setOriginalPrice( float $price )
Set original price to item (calculation price will be refreshed too) |
public
float
|
|
public
|
#
setCustomPrice( float $value )
Specify custom item price (used in case whe we have apply not product price to item) |
public
decimal
|
|
public
|
|
public
float
|
|
public
|
|
public
|
|
public
boolean
|
#
isChildrenCalculated( )
Checking if there children calculated or parent item when we have parent quote item and its children |
public
boolean
|
#
isShipSeparately( )
Checking can we ship product separatelly (each child separately) or each parent product item can be shipped only like one item |
getOptionByCode()
|
protected
mixed
|
$_parentItem | null |
|
protected
array
|
$_children | array() |
|
protected
array
|
$_messages | array() |
$_cacheTag,
$_dataSaveAllowed,
$_eventObject,
$_eventPrefix,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|