/** * Can render * * @return bool */ public function canRender() { if ($this->_canRender == null) { $this->_canRender = parent::canRender() && $this->isOrderConfirmationPage(); } return $this->_canRender; }
public function canRender() { if ($this->_canRender == null) { $this->_canRender = parent::canRender() && Mage::helper('remarketing')->scaEnabled(); } return $this->_canRender; }
/** * Can render * * @return bool */ public function canRender() { if ($this->_canRender == null) { /* @var Listrak_Remarketing_Helper_Data $helper */ $helper = Mage::helper('remarketing'); $this->_canRender = parent::canRender() && $helper->activityEnabled(); } return $this->_canRender; }
/** * Render block * * @return string */ public function _toHtml() { try { if (!$this->canRender()) { return ''; } $this->addLine("_ltk.Click.Submit();"); return parent::_toHtml(); } catch (Exception $e) { $this->getLogger()->addException($e); return ''; } }
public function _toHtml() { try { if (!$this->canRender()) { return ''; } $this->addLine("_ltk.Click.Submit();"); return parent::_toHtml(); } catch (Exception $e) { Mage::getModel('listrak/log')->addException($e); return ''; } }