Class Mage_Bundle_Model_Product_Price

Description

Bundle Price Model

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

Mage_Catalog_Model_Product_Type_Price
   |
   --Mage_Bundle_Model_Product_Price
Class Constant Summary
Variable Summary
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)
string getPrice ( $product)
unknown getPrices (unknown_type $product, [unknown_type $which = null])
unknown getPricesDependingOnTax (unknown_type $product, [unknown_type $which = null], [ $includeTax = null])
decimal getSelectionFinalPrice (Mage_Catalog_Model_Product $bundleProduct, Mage_Catalog_Model_Product $selectionProduct, decimal $bundleQty, [decimal $selectionQty = null], [ $multiplyQty = true])
decimal getSelectionPreFinalPrice (Mage_Catalog_Model_Product $bundleProduct, Mage_Catalog_Model_Product $selectionProduct, [decimal $qty = null])
decimal getSelectionPrice (Mage_Catalog_Model_Product $bundleProduct, Mage_Catalog_Model_Product $selectionProduct, [decimal $selectionQty = null], [ $multiplyQty = true])
decimal getTierPrice ([decimal $qty = null], Mage_Catalog_Model_Product $product)
decimal _applyTierPrice (Mage_Catalog_Model_Product $product, decimal $qty, decimal $finalPrice)
Variables
bool $_isPricesCalculatedByIndex (line 44)

Flag wich indicates - is min/max prices have been calculated by index

  • access: protected

Inherited Variables

Inherited from Mage_Catalog_Model_Product_Type_Price

Mage_Catalog_Model_Product_Type_Price::$attributeCache
Methods
static method calculatePrice (line 521)

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

Redefinition of:
Mage_Catalog_Model_Product_Type_Price::calculatePrice()
Calculate product price based on special price data and price rules
static method calculateSpecialPrice (line 653)

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

Redefinition of:
Mage_Catalog_Model_Product_Type_Price::calculateSpecialPrice()
Calculate and apply special price
getChildFinalPrice (line 141)
  • access: public
void getChildFinalPrice ( $product,  $productQty,  $childProduct,  $childProductQty)
  • $product
  • $productQty
  • $childProduct
  • $childProductQty

Redefinition of:
Mage_Catalog_Model_Product_Type_Price::getChildFinalPrice()
getFinalPrice (line 77)

Get product final price

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

Redefinition of:
Mage_Catalog_Model_Product_Type_Price::getFinalPrice()
Get product final price
getIsPricesCalculatedByIndex (line 51)

Is min/max prices have been calculated by index

  • access: public
bool getIsPricesCalculatedByIndex ()
getMaximalPrice (line 307)

Calculate maximal price of bundle

  • access: public
decimal getMaximalPrice (Mage_Catalog_Model_Product $product)
getMinimalPrice (line 296)

Calculate Minimal price of bundle (counting all required options)

  • access: public
decimal getMinimalPrice (Mage_Catalog_Model_Product $product)
getOptions (line 318)

Get Options with attached Selections collection

  • access: public
getPrice (line 61)

Return product base price

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

Redefinition of:
Mage_Catalog_Model_Product_Type_Price::getPrice()
Default action to get price of product
getPrices (line 153)

Retrieve Price

  • access: public
unknown getPrices (unknown_type $product, [unknown_type $which = null])
  • unknown_type $product
  • unknown_type $which
getPricesDependingOnTax (line 165)

Retrieve Prices depending on tax

  • access: public
unknown getPricesDependingOnTax (unknown_type $product, [unknown_type $which = null], [ $includeTax = null])
  • unknown_type $product
  • unknown_type $which
  • $includeTax
getSelectionFinalPrice (line 388)

Calculate final price of selection

  • access: public
decimal getSelectionFinalPrice (Mage_Catalog_Model_Product $bundleProduct, Mage_Catalog_Model_Product $selectionProduct, decimal $bundleQty, [decimal $selectionQty = null], [ $multiplyQty = true])
getSelectionPreFinalPrice (line 373)

Calculate selection price for front view (with applied special of bundle)

  • access: public
decimal getSelectionPreFinalPrice (Mage_Catalog_Model_Product $bundleProduct, Mage_Catalog_Model_Product $selectionProduct, [decimal $qty = null])
getSelectionPrice (line 343)

Calculate price of selection

  • access: public
decimal getSelectionPrice (Mage_Catalog_Model_Product $bundleProduct, Mage_Catalog_Model_Product $selectionProduct, [decimal $selectionQty = null], [ $multiplyQty = true])
getTierPrice (line 430)

Get product tier price by qty

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

Redefinition of:
Mage_Catalog_Model_Product_Type_Price::getTierPrice()
Get product tier price by qty
isTierPriceFixed (line 669)

Check is tier price value fixed or percent of original price

  • access: public
bool isTierPriceFixed ()

Redefinition of:
Mage_Catalog_Model_Product_Type_Price::isTierPriceFixed()
Check is tier price value fixed or percent of original price
_applyTierPrice (line 408)

Apply tier price for bundle

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

Redefinition of:
Mage_Catalog_Model_Product_Type_Price::_applyTierPrice()
Apply tier price for product if not return price that was before

Inherited Methods

Inherited From Mage_Catalog_Model_Product_Type_Price

Mage_Catalog_Model_Product_Type_Price::calculatePrice()
Mage_Catalog_Model_Product_Type_Price::calculateSpecialPrice()
Mage_Catalog_Model_Product_Type_Price::getChildFinalPrice()
Mage_Catalog_Model_Product_Type_Price::getFinalPrice()
Mage_Catalog_Model_Product_Type_Price::getFormatedPrice()
Mage_Catalog_Model_Product_Type_Price::getFormatedTierPrice()
Mage_Catalog_Model_Product_Type_Price::getPrice()
Mage_Catalog_Model_Product_Type_Price::getTierPrice()
Mage_Catalog_Model_Product_Type_Price::getTierPriceCount()
Mage_Catalog_Model_Product_Type_Price::isTierPriceFixed()
Mage_Catalog_Model_Product_Type_Price::_applyOptionsPrice()
Mage_Catalog_Model_Product_Type_Price::_applySpecialPrice()
Mage_Catalog_Model_Product_Type_Price::_applyTierPrice()
Mage_Catalog_Model_Product_Type_Price::_getCustomerGroupId()
Class Constants
PRICE_TYPE_DYNAMIC = 0 (line 37)
PRICE_TYPE_FIXED = 1 (line 36)

Inherited Constants

Inherited from Mage_Catalog_Model_Product_Type_Price

Mage_Catalog_Model_Product_Type_Price::CACHE_TAG

Documentation generated on Fri, 11 Feb 2011 17:09:55 +0200 by phpDocumentor 1.4.3