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(); } }
public function getBackUrl() { if ($this->getConfig()->isEnabledReviewSeoUrls()) { $uri = $this->getProductData()->getUrlKey(); return Mage::getUrl($uri . '/reviews'); } else { return parent::getReviewsUrl(); } }
protected function _toHtml() { if ($this->getData('choose_template') == 'custom_template') { if ($this->getData('custom_theme')) { $this->setTemplate($this->getData('custom_theme')); } else { $this->setTemplate('em_recentreviewedproducts/custom.phtml'); } } else { $this->setTemplate($this->getData('choose_template')); } return parent::_toHtml(); }
/** * 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(); } }