Ejemplo n.º 1
0
 public function getBackUrl()
 {
     if (Mage::getStoreConfig('mageworx_seo/seosuite/reviews_friendly_urls')) {
         return Mage::getUrl() . implode('/', array($this->getProductData()->getUrlKey(), 'reviews'));
     } else {
         return parent::getBackUrl();
     }
 }
Ejemplo n.º 2
0
 /**
  * Overwrite backURL button.
  *
  * @return string
  */
 public function getBackUrl()
 {
     $product = null;
     if ($this->getProduct()) {
         $product = $this->getProduct();
     } elseif ($this->getProductData()) {
         if ($this->getProductData()->getId() > 0) {
             $product = Mage::getModel("catalog/product")->load($this->getProductData()->getId());
         }
     }
     if ($product) {
         return Mage::getModel('reviewsearchfriendlyurls/reviews')->getReviewsUrl($product, $product->getCategory());
     } else {
         return parent::getBackUrl();
     }
 }