Mage_Bundle_Block_Checkout_Cart_Item_Renderer Class Reference

Inheritance diagram for Mage_Bundle_Block_Checkout_Cart_Item_Renderer:

Mage_Checkout_Block_Cart_Item_Renderer Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getOptionList ()

Protected Member Functions

 _getSelectionFinalPrice ($selectionProduct)
 _getSelectionQty ($selectionId)


Detailed Description

Definition at line 34 of file Renderer.php.


Member Function Documentation

_getSelectionFinalPrice ( selectionProduct  )  [protected]

Obtain final price of selection in a bundle product

Parameters:
Mage_Catalog_Model_Product $selectionProduct
Returns:
decimal

Definition at line 93 of file Renderer.php.

00094     {
00095         $bundleProduct = $this->getProduct();
00096         return $bundleProduct->getPriceModel()->getSelectionFinalPrice(
00097             $bundleProduct, $selectionProduct,
00098             $this->getQty(),
00099             $this->_getSelectionQty($selectionProduct->getSelectionId())
00100         );
00101     }

_getSelectionQty ( selectionId  )  [protected]

Get selection quantity

Parameters:
int $selectionId
Returns:
decimal

Definition at line 109 of file Renderer.php.

00110     {
00111         if ($selectionQty = $this->getProduct()->getCustomOption('selection_qty_' . $selectionId)) {
00112             return $selectionQty->getValue();
00113         }
00114         return 0;
00115     }

getOptionList (  ) 

Get list of all otions for product

Returns:
array

Reimplemented from Mage_Checkout_Block_Cart_Item_Renderer.

Definition at line 117 of file Renderer.php.

00118     {
00119         return array_merge($this->_getBundleOptions(), parent::getOptionList());
00120     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:34 2009 for Magento by  doxygen 1.5.8