Class Mage_Catalog_Model_Product_Type_Price

Description

Product type price model

Located in /Catalog/Model/Product/Type/Price.php (line 34)


	
			
Direct descendents
Class Description
Mage_Bundle_Model_Product_Price Bundle Price Model
Mage_Catalog_Model_Product_Type_Configurable_Price Product type price model
Mage_Downloadable_Model_Product_Price Downloadable products price model
Class Constant Summary
CACHE_TAG = 'PRODUCT_PRICE'
Variable Summary
static mixed $attributeCache
Method Summary
static float calculatePrice (float $basePrice, float $specialPrice, string $specialPriceFrom, string $specialPriceTo, [float|null|false $rulePrice = false], [mixed $wId = null], [mixed $gId = null], [null|int $productId = null])
static float calculateSpecialPrice (float $finalPrice, float $specialPrice, string $specialPriceFrom, string $specialPriceTo, [mixed $store = null])
void getChildFinalPrice ( $product,  $productQty,  $childProduct,  $childProductQty)
double getFinalPrice ([double $qty = null], Mage_Catalog_Model_Product $product)
array getFormatedTierPrice ([double $qty = null], Mage_Catalog_Model_Product $product)
decimal getPrice ( $product)
double getTierPrice ([double $qty = null], Mage_Catalog_Model_Product $product)
double _applyOptionsPrice (Mage_Catalog_Model_Product $product, int $qty, double $finalPrice)
double _applySpecialPrice (Mage_Catalog_Model_Product $product, double $finalPrice)
double _applyTierPrice (Mage_Catalog_Model_Product $product, double $qty, double $finalPrice)
void _getCustomerGroupId ( $product)
Variables
static mixed $attributeCache = array() (line 38)
Methods
static method calculatePrice (line 292)

Calculate product price based on special price data and price rules

  • access: public
static float calculatePrice (float $basePrice, float $specialPrice, string $specialPriceFrom, string $specialPriceTo, [float|null|false $rulePrice = false], [mixed $wId = null], [mixed $gId = null], [null|int $productId = null])
  • float $basePrice
  • float $specialPrice
  • string $specialPriceFrom
  • string $specialPriceTo
  • float|null|false $rulePrice
  • mixed $wId
  • mixed $gId
  • null|int $productId

Redefined in descendants as:
static method calculateSpecialPrice (line 334)

Calculate and apply special price

  • access: public
static float calculateSpecialPrice (float $finalPrice, float $specialPrice, string $specialPriceFrom, string $specialPriceTo, [mixed $store = null])
  • float $finalPrice
  • float $specialPrice
  • string $specialPriceFrom
  • string $specialPriceTo
  • mixed $store

Redefined in descendants as:
getChildFinalPrice (line 76)
  • access: public
void getChildFinalPrice ( $product,  $productQty,  $childProduct,  $childProductQty)
  • $product
  • $productQty
  • $childProduct
  • $childProductQty

Redefined in descendants as:
getFinalPrice (line 57)

Get product final price

  • access: public
double getFinalPrice ([double $qty = null], Mage_Catalog_Model_Product $product)

Redefined in descendants as:
getFormatedPrice (line 246)

Get formated by currency product price

  • return: || double
  • access: public
array getFormatedPrice (Mage_Catalog_Model_Product $product)
getFormatedTierPrice (line 225)

Get formated by currency tier price

  • return: || double
  • access: public
array getFormatedTierPrice ([double $qty = null], Mage_Catalog_Model_Product $product)
getPrice (line 45)

Default action to get price of product

  • access: public
decimal getPrice ( $product)
  • $product

Redefined in descendants as:
getTierPrice (line 109)

Get product tier price by qty

  • access: public
double getTierPrice ([double $qty = null], Mage_Catalog_Model_Product $product)

Redefined in descendants as:
getTierPriceCount (line 212)

Count how many tier prices we have for the product

  • access: public
int getTierPriceCount (Mage_Catalog_Model_Product $product)
isTierPriceFixed (line 349)

Check is tier price value fixed or percent of original price

  • access: public
bool isTierPriceFixed ()

Redefined in descendants as:
_applyOptionsPrice (line 259)

Apply options price

  • access: protected
double _applyOptionsPrice (Mage_Catalog_Model_Product $product, int $qty, double $finalPrice)
_applySpecialPrice (line 201)

Apply special price for product if not return price that was before

  • access: protected
double _applySpecialPrice (Mage_Catalog_Model_Product $product, double $finalPrice)
_applyTierPrice (line 89)

Apply tier price for product if not return price that was before

  • access: protected
double _applyTierPrice (Mage_Catalog_Model_Product $product, double $qty, double $finalPrice)

Redefined in descendants as:
_getCustomerGroupId (line 186)
  • access: protected
void _getCustomerGroupId ( $product)
  • $product
Class Constants
CACHE_TAG = 'PRODUCT_PRICE' (line 36)

Documentation generated on Fri, 11 Feb 2011 17:10:03 +0200 by phpDocumentor 1.4.3