Public Member Functions | |
getReviewsSummaryHtml (Mage_Catalog_Model_Product $product, $templateType=false, $displayIfNoReviews=false) | |
getReviewsCollection () | |
hasOptions () | |
Protected Member Functions | |
_toHtml () | |
Protected Attributes | |
$_reviewsCollection |
Definition at line 34 of file View.php.
_toHtml | ( | ) | [protected] |
Render block HTML
Reimplemented from Mage_Core_Block_Template.
Definition at line 38 of file View.php.
00039 { 00040 $this->getProduct()->setShortDescription(null); 00041 00042 return parent::_toHtml(); 00043 }
getReviewsCollection | ( | ) |
Definition at line 67 of file View.php.
00068 { 00069 if (null === $this->_reviewsCollection) { 00070 $this->_reviewsCollection = Mage::getModel('review/review')->getCollection() 00071 ->addStoreFilter(Mage::app()->getStore()->getId()) 00072 ->addStatusFilter('approved') 00073 ->addEntityFilter('product', $this->getProduct()->getId()) 00074 ->setDateOrder(); 00075 } 00076 return $this->_reviewsCollection; 00077 }
getReviewsSummaryHtml | ( | Mage_Catalog_Model_Product $ | product, | |
$ | templateType = false , |
|||
$ | displayIfNoReviews = false | |||
) |
Replace review summary html with more detailed review summary Reviews collection count will be jerked here
Mage_Catalog_Model_Product | $product | |
string | $templateType | |
bool | $displayIfNoReviews |
Reimplemented from Mage_Catalog_Block_Product_Abstract.
Definition at line 54 of file View.php.
00055 { 00056 return 00057 $this->getLayout()->createBlock('rating/entity_detailed') 00058 ->setEntityId($this->getProduct()->getId()) 00059 ->toHtml() 00060 . 00061 $this->getLayout()->getBlock('product_review_list.count') 00062 ->assign('count', $this->getReviewsCollection()->getSize()) 00063 ->toHtml() 00064 ; 00065 }
hasOptions | ( | ) |
Force product view page behave like without options
Reimplemented from Mage_Catalog_Block_Product_View.
Definition at line 84 of file View.php.