Public Member Functions | |
getProduct () | |
getPrice () | |
getFinalPrice () | |
getPriceHtml ($product) | |
Protected Attributes | |
$_finalPrice = array() |
Definition at line 28 of file Product.php.
getFinalPrice | ( | ) |
Definition at line 53 of file Product.php.
00054 { 00055 if (!isset($this->_finalPrice[$this->getProduct()->getId()])) { 00056 $this->_finalPrice[$this->getProduct()->getId()] = $this->getProduct()->getFinalPrice(); 00057 } 00058 return $this->_finalPrice[$this->getProduct()->getId()]; 00059 }
getPrice | ( | ) |
Definition at line 48 of file Product.php.
00049 { 00050 return $this->getProduct()->getPrice(); 00051 }
getPriceHtml | ( | $ | product | ) |
Definition at line 61 of file Product.php.
00062 { 00063 $this->setTemplate('catalog/product/price.phtml'); 00064 $this->setProduct($product); 00065 return $this->toHtml(); 00066 }
getProduct | ( | ) |
Definition at line 32 of file Product.php.
00033 { 00034 if (!$this->getData('product') instanceof Mage_Catalog_Model_Product) { 00035 if ($this->getData('product')->getProductId()) { 00036 $productId = $this->getData('product')->getProductId(); 00037 } 00038 if ($productId) { 00039 $product = Mage::getModel('catalog/product')->load($productId); 00040 if ($product) { 00041 $this->setProduct($product); 00042 } 00043 } 00044 } 00045 return $this->getData('product'); 00046 }
$_finalPrice = array() [protected] |
Definition at line 30 of file Product.php.