Mage_Bundle_Block_Catalog_Product_View Class Reference

Inheritance diagram for Mage_Bundle_Block_Catalog_Product_View:

Mage_Catalog_Block_Product_View Mage_Catalog_Block_Product_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getTierPrices ($product=null)


Detailed Description

Definition at line 35 of file View.php.


Member Function Documentation

getTierPrices ( product = null  ) 

Get tier prices (formatted)

Parameters:
Mage_Catalog_Model_Product $product
Returns:
array

Reimplemented from Mage_Catalog_Block_Product_Abstract.

Definition at line 43 of file View.php.

00044     {
00045         if (is_null($product)) {
00046             $product = $this->getProduct();
00047         }
00048         $prices  = $product->getFormatedTierPrice();
00049 
00050         $res = array();
00051         if (is_array($prices)) {
00052             foreach ($prices as $price) {
00053                 $price['price_qty'] = $price['price_qty']*1;
00054                 $price['savePercent'] = ceil(100 - $price['price'] );
00055                 $price['formated_price'] = Mage::app()->getStore()->formatPrice(Mage::app()->getStore()->convertPrice(Mage::helper('tax')->getPrice($product, $price['website_price'])));
00056                 $price['formated_price_incl_tax'] = Mage::app()->getStore()->formatPrice(Mage::app()->getStore()->convertPrice(Mage::helper('tax')->getPrice($product, $price['website_price'], true)));
00057                 $res[] = $price;
00058             }
00059         }
00060 
00061         return $res;
00062     }


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