Ejemplo n.º 1
0
 /**
  * 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 '';
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 3
0
 public function getReviewsUrl()
 {
     if ($this->getConfig()->isEnabledReviewSeoUrls()) {
         $uri = $this->getProduct()->getUrlKey();
         return Mage::getUrl($uri . '/reviews');
     } else {
         return parent::getReviewsUrl();
     }
 }
Ejemplo n.º 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()
     //        ));
 }