Mage_Bundle_Block_Catalog_Product_Price Class Reference

Inheritance diagram for Mage_Bundle_Block_Catalog_Product_Price:

Mage_Catalog_Block_Product_Price Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Checkbox Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Multi Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Radio Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Select

List of all members.

Public Member Functions

 isRatesGraterThenZero ()


Detailed Description

Definition at line 34 of file Price.php.


Member Function Documentation

isRatesGraterThenZero (  ) 

Definition at line 37 of file Price.php.

00038     {
00039         $_request = Mage::getSingleton('tax/calculation')->getRateRequest(false, false, false);
00040         $_request->setProductClassId($this->getProduct()->getTaxClassId());
00041         $defaultTax = Mage::getSingleton('tax/calculation')->getRate($_request);
00042 
00043         $_request = Mage::getSingleton('tax/calculation')->getRateRequest();
00044         $_request->setProductClassId($this->getProduct()->getTaxClassId());
00045         $currentTax = Mage::getSingleton('tax/calculation')->getRate($_request);
00046 
00047         return (floatval($defaultTax) > 0 || floatval($currentTax) > 0);
00048     }


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