예제 #1
0
파일: Abstract.php 프로젝트: quyip8818/Mag
 /**
  * Add/replace reviews summary template by type
  *
  * @param string $type
  * @param string $template
  * @return string
  */
 public function addReviewSummaryTemplate($type, $template)
 {
     if ($this->_initReviewsHelperBlock()) {
         $this->_reviewsHelperBlock->addTemplate($type, $template);
     }
     return '';
 }
예제 #2
0
 public function getReviewsUrl($forceReviewsUrl = FALSE)
 {
     if (Mage::getStoreConfig('avisverifies/extra/useProductUrl') && Mage::helper('avisverifies/Data')->isActive() && $forceReviewsUrl == FALSE) {
         return $this->getProduct()->getProductUrl();
     } else {
         return parent::getReviewsUrl();
     }
 }
예제 #3
0
 public function getReviewsUrl()
 {
     if ($this->getConfig()->isEnabledReviewSeoUrls()) {
         $uri = $this->getProduct()->getUrlKey();
         return Mage::getUrl($uri . '/reviews');
     } else {
         return parent::getReviewsUrl();
     }
 }
예제 #4
0
 public function getUrbanReviewsUrl($product)
 {
     if ($product != null) {
         $this->setProduct($product);
     }
     return parent::getReviewsUrl();
     //        return Mage::getUrl('review/product/list', array(
     //           'id'        => $this->getProduct()->getId(),
     //           'category'  => $this->getProduct()->getCategoryId()
     //        ));
 }