public function getHeader() { $header = parent::getHeader(); if ($this->getProduct()->getId()) { $productUrl = $this->getProduct()->getUrlInStore(); $previewUrl = $this->getUrl('tadic_avp/product/preview', array('id' => $this->getProductId(), 'key' => Mage::helper('tadic_avp/catalog_product')->getHashForProduct($this->getProductId()), '_store' => $this->getProduct()->getStoreId())); $header .= "  <a href='{$productUrl}' target='_blank'>view</a>"; $header .= "  <a href='{$previewUrl}' target='_blank'>preview</a>"; } return $header; }